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