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
This commit is contained in:
@@ -189,7 +189,7 @@ CallgrindThreadProfileResult::PrintResults()
|
|||||||
|
|
||||||
fprintf(out, "positions: line\n");
|
fprintf(out, "positions: line\n");
|
||||||
fprintf(out, "events: Ticks Time\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
|
// get hit images
|
||||||
CallgrindThreadImage* images[fOldImages.Size() + fImages.Size()];
|
CallgrindThreadImage* images[fOldImages.Size() + fImages.Size()];
|
||||||
@@ -237,6 +237,8 @@ CallgrindThreadProfileResult::PrintResults()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fprintf(out, "\ntotals: %lld %lld\n", fTotalTicks, fTotalTicks * fInterval);
|
||||||
|
|
||||||
fclose(out);
|
fclose(out);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user