private function Twig_Profiler_Dumper_Blackfire::dumpProfile in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/twig/twig/lib/Twig/Profiler/Dumper/Blackfire.php \Twig_Profiler_Dumper_Blackfire::dumpProfile()
2 calls to Twig_Profiler_Dumper_Blackfire::dumpProfile()
- Twig_Profiler_Dumper_Blackfire::dump in vendor/
twig/ twig/ lib/ Twig/ Profiler/ Dumper/ Blackfire.php - Twig_Profiler_Dumper_Blackfire::dumpChildren in vendor/
twig/ twig/ lib/ Twig/ Profiler/ Dumper/ Blackfire.php
File
- vendor/
twig/ twig/ lib/ Twig/ Profiler/ Dumper/ Blackfire.php, line 52
Class
- Twig_Profiler_Dumper_Blackfire
- @author Fabien Potencier <fabien@symfony.com>
Code
private function dumpProfile($edge, Twig_Profiler_Profile $profile, &$data) {
if (isset($data[$edge])) {
$data[$edge]['ct'] += 1;
$data[$edge]['wt'] += floor($profile
->getDuration() * 1000000);
$data[$edge]['mu'] += $profile
->getMemoryUsage();
$data[$edge]['pmu'] += $profile
->getPeakMemoryUsage();
}
else {
$data[$edge] = array(
'ct' => 1,
'wt' => floor($profile
->getDuration() * 1000000),
'mu' => $profile
->getMemoryUsage(),
'pmu' => $profile
->getPeakMemoryUsage(),
);
}
}