You are here

public function Twig_Profiler_Profile::enter in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/twig/twig/lib/Twig/Profiler/Profile.php \Twig_Profiler_Profile::enter()

Starts the profiling.

1 call to Twig_Profiler_Profile::enter()
Twig_Profiler_Profile::__construct in vendor/twig/twig/lib/Twig/Profiler/Profile.php

File

vendor/twig/twig/lib/Twig/Profiler/Profile.php, line 125

Class

Twig_Profiler_Profile
@author Fabien Potencier <fabien@symfony.com>

Code

public function enter() {
  $this->starts = array(
    'wt' => microtime(true),
    'mu' => memory_get_usage(),
    'pmu' => memory_get_peak_usage(),
  );
}