$sections
$sections : array<mixed,\app\framework\Component\Stopwatch\Section>
Stopwatch provides a way to profile code.
$sections : array<mixed,\app\framework\Component\Stopwatch\Section>
$activeSections : array<mixed,\app\framework\Component\Stopwatch\Section>
getSections() : array<mixed,\app\framework\Component\Stopwatch\Section>
start(string $name, string $category = null) : \app\framework\Component\Stopwatch\StopwatchEvent
Starts an event.
string | $name | The event name |
string | $category | The event category |
stop(string $name) : \app\framework\Component\Stopwatch\StopwatchEvent
Stops an event.
string | $name | The event name |
lap(string $name) : \app\framework\Component\Stopwatch\StopwatchEvent
Stops then restarts an event.
string | $name | The event name |
getEvent(string $name) : \app\framework\Component\Stopwatch\StopwatchEvent
Returns a specific event by name.
string | $name | The event name |
getSectionEvents(string $id) : array<mixed,\app\framework\Component\Stopwatch\StopwatchEvent>
Gets all events for a given section.
string | $id | A section identifier |