Profiler
class Profiler implements ProfilerInterface, Countable (View source)
Class Profiler
Methods
Constructor.
Get the name of this profiler.
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.
Method to get property MemoryRealUsage
Get the points in this profiler (from the first to the last).
Get the currently used renderer in this profiler.
Render the profiler.
Cast the profiler to a string using the renderer.
Get an iterator on the profiler points.
Count the number of points in this profiler.
Method to set property memoryRealUsage
Details
at line line 91
__construct(string $name, ProfilerRendererInterface $renderer = null, array $points = array(), boolean $memoryRealUsage = null)
Constructor.
at line line 119
Profiler
setPoint(PointInterface $point)
set Point
at line line 162
string
getName()
Get the name of this profiler.
at line line 177
ProfilerInterface
mark(string $name, array|CollectorInterface $data = array())
Mark a profile point.
at line line 226
boolean
hasPoint(string $name)
Check if the profiler has marked the given point.
at line line 238
ProfilerPointInterface
getPoint(string $name)
Get the point identified by the given name.
at line line 258
float
getTimeBetween(string $first, string $second)
Get the elapsed time in seconds between the two points.
at line line 286
integer
getMemoryBetween(string $first, string $second)
Get the amount of allocated memory in bytes between the two points.
at line line 309
integer
getMemoryPeakBytes()
Get the memory peak in bytes during the profiler run.
at line line 319
boolean
getMemoryRealUsage()
Method to get property MemoryRealUsage
at line line 329
ProfilerPointInterface[]
getPoints()
Get the points in this profiler (from the first to the last).
at line line 341
Profiler
setRenderer(ProfilerRendererInterface $renderer)
Set the renderer to render this profiler.
at line line 353
ProfilerRendererInterface
getRenderer()
Get the currently used renderer in this profiler.
at line line 363
string
render()
Render the profiler.
at line line 373
string
__toString()
Cast the profiler to a string using the renderer.
at line line 383
ArrayIterator
getIterator()
Get an iterator on the profiler points.
at line line 393
integer
count()
Count the number of points in this profiler.