Copied!
Cloneable Instantiable
Methods
public __construct ( string $fileName )
 

Parse a MySQL Slow Query Log file

public getEntries ( int $session = -1 ) : array
 

Return \PHPFUI\MySQLSlowQuery\Entry entries from file

public getSessions () : array
 

Return \PHPFUI\MySQLSlowQuery\Session sessions from file

public sortEntries ( string $sortColumn = 'Query_time' , string $sortOrder = 'desc' ) : self
 

Sort \PHPFUI\MySQLSlowQuery\Entry entries. Defaults to Query_time, desc

Methods
protected entrySort ( PHPFUI\MySQLSlowQuery\Entry $lhs , PHPFUI\MySQLSlowQuery\Entry $rhs ) : int
Constants
private PHPFUI\MySQLSlowQuery\Parser ::PORT = 'TCP Port: '
private PHPFUI\MySQLSlowQuery\Parser ::TIME = '# Time: '
Properties
private $entries
private $extraLines
private $fileName
private $handle
private $inSession
private $sessions
private $sortColumn
private $sortOrder
Methods
private getNextLine ()
private parse () : void
private pushLine ( string $line ) : self
© 2021 Bruce Wells
Search Namespaces \ Classes
Configuration