cvs: pecl /apd pprof2calltree
| From: | George Schlossnagle | Date: | Thu, 11 Mar 2004 21:07:25 +0000 |
| Subject: | cvs: pecl /apd pprof2calltree | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-1069@lists.php.net to get a copy of this message | ||
gschlossnagle Thu Mar 11 16:07:25 2004 EDT
Modified files:
/pecl/apd pprof2calltree
Log:
fix display error and warning on older versions ok kcachegrind
http://cvs.php.net/diff.php/pecl/apd/pprof2calltree?r1=1.2&r2=1.3&ty=u
Index: pecl/apd/pprof2calltree
diff -u pecl/apd/pprof2calltree:1.2 pecl/apd/pprof2calltree:1.3
--- pecl/apd/pprof2calltree:1.2 Wed Mar 10 11:40:55 2004
+++ pecl/apd/pprof2calltree Thu Mar 11 16:07:25 2004
@@ -142,6 +142,7 @@
foreach($data['called_funcs'] as $counter => $items) {
foreach($items as $called_id => $costs) {
if(is_array($costs)) {
+ printf("cob=%s\n", $function_type[$called_id]);
printf("cfn=%s\n", $function_lookup[$called_id]);
foreach($costs as $file => $lines) {
printf("cfi=%s\ncalls=1\n", $file_lookup[$file]);
@@ -155,7 +156,6 @@
}
print "\n";
}
-print "\ntotals=$total_cost\n";
$buffer = ob_get_clean();
print "Writing kcachegrind compatible output to $outfile\n";
fwrite($OUT, $buffer);