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 webprofiler/
src/ Stopwatch.php - Creates a new section or re-opens an existing section.
File
-
webprofiler/
src/ Stopwatch.php, line 86
Class
- Stopwatch
- Class Stopwatch
Namespace
Drupal\webprofilerCode
public function start($name, $category = NULL) {
return end($this->activeSections)
->startEvent($name, $category);
}