public function Stopwatch::start

Starts an event.

Parameters

string $name The event name:

string $category The event category:

Return value

StopwatchEvent A StopwatchEvent instance

1 call to Stopwatch::start()
Stopwatch::openSection in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Debug/Stopwatch.php
Creates a new section or re-opens an existing section.

File

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

Class

Stopwatch
Stopwatch provides a way to profile code.

Namespace

Symfony\Component\HttpKernel\Debug

Code

public function start($name, $category = null) {
  return end($this->activeSections)
    ->startEvent($name, $category);
}