public function Stopwatch::getSectionEvents

Gets all events for a given section.

Parameters

string $id A section identifier:

Return value

StopwatchEvent[] An array of StopwatchEvent instances

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Debug/Stopwatch.php, line 114

Class

Stopwatch
Stopwatch provides a way to profile code.

Namespace

Symfony\Component\HttpKernel\Debug

Code

public function getSectionEvents($id) {
  return isset($this->sections[$id]) ? $this->sections[$id]
    ->getEvents() : array();
}