PATH:
opt
/
alt
/
tests
/
alt-php52-pecl-xhprof-legacy_0.9.4-2.el8
/
tests
<?php /** * Print xhprof raw data (essentially a callgraph) in a canonical style, * so that even if the ordering of things within the raw_data (which is * an associative array) changes in future implementations the output * remains stable. * * Also, suppress output of variable quantities (such as time, memory) * so that reference output of tests doesn't need any additional masking. * * @author Kannan */ function print_canonical($xhprof_data) { ksort($xhprof_data); foreach($xhprof_data as $func => $metrics) { echo str_pad($func, 40) . ":"; ksort($metrics); foreach ($metrics as $name => $value) { // Only call counts are stable. // Wild card everything else. We still print // the metric name to ensure it was collected. if ($name != "ct") { $value = "*"; } else { $value = str_pad($value, 8, " ", STR_PAD_LEFT); } echo " {$name}={$value};"; } echo "\n"; } }
[-] xhprof_005.phpt
[edit]
[-] xhprof_002.phpt
[edit]
[-] xhprof_007.phpt
[edit]
[-] xhprof_004_inc.php
[edit]
[-] xhprof_004.phpt
[edit]
[-] xhprof_001.phpt
[edit]
[-] xhprof_003.phpt
[edit]
[-] xhprof_004_require.php
[edit]
[+]
..
[-] xhprof_008.phpt
[edit]
[-] common.php
[edit]
[-] xhprof_006.phpt
[edit]