18 $this->actives[] = $profile;
23 $this->actives[0]->addProfile($profile);
24 array_unshift($this->actives, $profile);
30 array_shift($this->actives);
32 if (1 === count($this->actives)) {
33 $this->actives[0]->leave();
48 class_alias(
'Twig_Extension_Profiler',
'Twig\Extension\ProfilerExtension',
false);
49 class_exists(
'Twig_Profiler_Profile');
leave(Twig_Profiler_Profile $profile)
getNodeVisitors()
Returns the node visitor instances to add to the existing list.
__construct(Twig_Profiler_Profile $profile)
getName()
Returns the name of the extension.
enter(Twig_Profiler_Profile $profile)
leave()
Stops the profiling.