https://bugs.kde.org/show_bug.cgi?id=401454

            Bug ID: 401454
           Summary: Add a --show-percs option to cg_annotate and
                    callgrind_annotate.
           Product: valgrind
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: cachegrind
          Assignee: n...@valgrind.org
          Reporter: n.netherc...@gmail.com
  Target Milestone: ---

Created attachment 116523
  --> https://bugs.kde.org/attachment.cgi?id=116523&action=edit
patch

Add a --show-percs option to cg_annotate and callgrind_annotate.

Because it's very useful. As part of this, the "percentage of events
annotated" numbers at the bottom of the output is changed to "events
annotated" so that --show-percs doesn't compute a percentage of a
percentage.

Example output lines:

> 4,967,137,442 (100.0%)  PROGRAM TOTALS
>     
> 4,543 (25.23%)    17,566 ( 0.43%)    47,993 ( 0.92%) 
> /build/glibc-OTsEL5/glibc-2.27/elf/dl-lookup.c
>     
> 1 ( 0.01%) 2,000,001 (49.29%) 3,000,004 (57.36%)     for (int i = 0; i < 
> 1000000; i++) {

The commit also adds some much-needed tests for cg_annotate and
callgrind_annotate.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to