ProfilerInterface
interface ProfilerInterface (View source)
Interface ProfilerInterface
Methods
Get the name of this profiler.
Mark a profile point.
Check if the profiler has marked the given point.
Get the point identified by the given name.
Get the elapsed time in seconds between the two points.
Get the amount of allocated memory in bytes between the two points.
Get the memory peak in bytes during the profiler run.
Get the points in this profiler (from the first to the last).
Render the profiler.
Details
at line line 24
string
getName()
Get the name of this profiler.
at line line 35
ProfilerInterface
mark(string $name)
Mark a profile point.
at line line 44
boolean
hasPoint(string $name)
Check if the profiler has marked the given point.
at line line 53
ProfilerPointInterface
getPoint(string $name)
Get the point identified by the given name.
at line line 65
float
getTimeBetween(string $first, string $second)
Get the elapsed time in seconds between the two points.
at line line 77
integer
getMemoryBetween(string $first, string $second)
Get the amount of allocated memory in bytes between the two points.
at line line 83
integer
getMemoryPeakBytes()
Get the memory peak in bytes during the profiler run.
at line line 90
ProfilerPointInterface[]
getPoints()
Get the points in this profiler (from the first to the last).
at line line 97
string
render()
Render the profiler.