Метод |
Описание |
|
__construct ( Psr\Log\LoggerInterface $logger, mixed $startTime = null, boolean $on = true ) : void |
Register the logger and application start time. |
|
__toString ( ) : string |
Render the profiler. |
|
disable ( ) : void |
Disable the profiler. |
|
enable ( boolean $on = true ) : void |
Enable the profiler. |
|
endTimer ( string $timer, mixed $endTime = null ) : Profiler |
End a timer. |
|
getElapsedTime ( string $timer ) : double |
Get the amount of time that passed during a timer. |
|
getIncludedFiles ( ) : array |
Get all of the files that have been included. |
|
getLoadTime ( ) : integer |
Get the current application execution time in milliseconds. |
|
getMemoryPeak ( ) : string |
Get the peak memory usage in a readable format. |
|
getMemoryUsage ( ) : string |
Get the current memory usage in a readable format. |
|
getTimer ( string $timer ) : double |
Get a timer. |
|
getTimers ( ) : array |
Get all of the timers. |
|
isEnabled ( ) : boolean |
Check if profiler is enabled |
|
render ( ) : string |
Render the profiler. |
|
setLogger ( Psr\Log\LoggerInterface $logger ) : void |
Set the logger. |
|
startTimer ( string $timer, mixed $startTime = null ) : Profiler |
Start a timer. |
|