ProfilerInterface
Interface for Profilers containing a sequence of ProfilePointInterface.
| since |
1.0 |
|---|---|
| package |
Joomla Framework |
Methods
getName
Get the name of this profiler.
getName() :
| since |
1.0 |
|---|
Response
stringThe name of this profiler.
getPoint
Get the point identified by the given name.
getPoint( name, default = null) : \Joomla\Profiler\ProfilePointInterface|mixed
| since |
1.0 |
|---|
Arguments
- name
stringThe name of the point.- default
mixedThe default value if the point hasn't been marked.
Response
ProfilePointInterface|mixedThe profile point or the default value.
getPoints
Get the points in this profiler (in the order they were marked).
getPoints() : \Joomla\Profiler\ProfilePointInterface||string|int
getRenderer
Get the currently used renderer in this profiler.
getRenderer() : \Joomla\Profiler\ProfilerRendererInterface
hasPoint
Check if the profiler has marked the given point.
hasPoint( name) :
| since |
1.0 |
|---|
Arguments
- name
stringThe name of the point.
Response
boolTrue if the profiler has marked the point, false otherwise.
mark
Mark a profile point with the given name.
mark( name) : \Joomla\Profiler\ProfilerInterface
| since |
1.0 |
|---|---|
| throws |
|
Arguments
- name
stringThe profile point name.
Response
ProfilerInterfaceThis method is chainable.
render
Render the profiler.
render() :
| since |
1.0 |
|---|
Response
stringThe rendered profiler.
setRenderer
Set the renderer to render this profiler.
setRenderer(\Joomla\Profiler\ProfilerRendererInterface renderer) : \Joomla\Profiler\ProfilerInterface
| since |
1.0 |
|---|
Arguments
- renderer
ProfilerRendererInterfaceThe renderer.
Response
ProfilerInterfaceThis method is chainable.