From 6486b756d0591b52da6c704424712e138de4274e Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Wed, 1 Oct 2008 11:57:42 +0000 Subject: [PATCH] Callgrind output: Added the missing time costs in the "summary" line. Also added the missing "totals" line. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27817 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/bin/debug/profile/CallgrindThreadProfileResult.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bin/debug/profile/CallgrindThreadProfileResult.cpp b/src/bin/debug/profile/CallgrindThreadProfileResult.cpp index 0b4e72feec..818356e609 100644 --- a/src/bin/debug/profile/CallgrindThreadProfileResult.cpp +++ b/src/bin/debug/profile/CallgrindThreadProfileResult.cpp @@ -189,7 +189,7 @@ CallgrindThreadProfileResult::PrintResults() fprintf(out, "positions: line\n"); fprintf(out, "events: Ticks Time\n"); - fprintf(out, "summary: %lld\n", fTotalTicks); + fprintf(out, "summary: %lld %lld\n", fTotalTicks, fTotalTicks * fInterval); // get hit images CallgrindThreadImage* images[fOldImages.Size() + fImages.Size()]; @@ -237,6 +237,8 @@ CallgrindThreadProfileResult::PrintResults() } } + fprintf(out, "\ntotals: %lld %lld\n", fTotalTicks, fTotalTicks * fInterval); + fclose(out); }