25 $start =
sprintf(
'%f', microtime(
true));
27file-format: BlackfireProbe
28cost-dimensions: wt mu pmu
29request-start: {$start}
35 $str .=
"{$name}//{$values['ct']} {$values['wt']} {$values['mu']} {$values['pmu']}\n";
43 foreach ($profile as $p) {
44 if ($p->isTemplate()) {
45 $name = $p->getTemplate();
47 $name =
sprintf(
'%s::%s(%s)', $p->getTemplate(), $p->getType(), $p->getName());
56 if (isset(
$data[$edge])) {
57 $data[$edge][
'ct'] += 1;
72class_alias(
'Twig_Profiler_Dumper_Blackfire',
'Twig\Profiler\Dumper\BlackfireDumper',
false);
sprintf('%.4f', $callTime)
const EOF
How fgetc() reports an End Of File.
An exception for terminatinating execution or to throw for unit testing.
dump(Twig_Profiler_Profile $profile)
dumpProfile($edge, Twig_Profiler_Profile $profile, &$data)
dumpChildren($parent, Twig_Profiler_Profile $profile, &$data)
getPeakMemoryUsage()
Returns the peak memory usage in bytes.
getDuration()
Returns the duration in microseconds.
getMemoryUsage()
Returns the memory usage in bytes.