Nicholas Nethercote e6e8377521 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.
2018-12-10 14:14:20 +11:00

32 lines
1.0 KiB
Makefile

include $(top_srcdir)/Makefile.tool-tests.am
SUBDIRS = .
DIST_SUBDIRS = .
dist_noinst_SCRIPTS = filter_stderr
EXTRA_DIST = \
ann1.post.exp ann1.stderr.exp ann1.vgtest \
ann2.post.exp ann2.stderr.exp ann2.vgtest \
clreq.vgtest clreq.stderr.exp \
simwork1.vgtest simwork1.stdout.exp simwork1.stderr.exp \
simwork2.vgtest simwork2.stdout.exp simwork2.stderr.exp \
simwork3.vgtest simwork3.stdout.exp simwork3.stderr.exp \
simwork-both.vgtest simwork-both.stdout.exp simwork-both.stderr.exp \
simwork-branch.vgtest simwork-branch.stdout.exp simwork-branch.stderr.exp \
simwork-cache.vgtest simwork-cache.stdout.exp simwork-cache.stderr.exp \
notpower2.vgtest notpower2.stderr.exp \
notpower2-wb.vgtest notpower2-wb.stderr.exp \
notpower2-hwpref.vgtest notpower2-hwpref.stderr.exp \
notpower2-use.vgtest notpower2-use.stderr.exp \
threads.vgtest threads.stderr.exp \
threads-use.vgtest threads-use.stderr.exp
check_PROGRAMS = clreq simwork threads
AM_CFLAGS += $(AM_FLAG_M3264_PRI)
AM_CXXFLAGS += $(AM_FLAG_M3264_PRI)
threads_LDADD = -lpthread