--- /dev/null
+int main(void) {
+ int z = 0;
+ for (int i = 0; i < 1000000; i++) {
+ z += i;
+ }
+ return z % 256;
+}
--------------------------------------------------------------------------------
Ir I1mr ILmr file:function
--------------------------------------------------------------------------------
-5,000,015 1 1 /home/njn/grind/ws2/a.c:main
+5,000,015 1 1 a.c:main
47,993 19 19 /build/glibc-OTsEL5/glibc-2.27/elf/dl-lookup.c:do_lookup_x
28,534 11 11 /build/glibc-OTsEL5/glibc-2.27/elf/dl-lookup.c:_dl_lookup_symbol_x
28,136 7 7 /build/glibc-OTsEL5/glibc-2.27/elf/dl-tunables.c:__GI___tunables_init
6,898 2 2 /build/glibc-OTsEL5/glibc-2.27/elf/dl-misc.c:_dl_name_match_p
--------------------------------------------------------------------------------
--- Auto-annotated source: /home/njn/grind/ws2/a.c
+-- Auto-annotated source: a.c
--------------------------------------------------------------------------------
Ir I1mr ILmr
--------------------------------------------------------------------------------
Dw Dr Ir file:function
--------------------------------------------------------------------------------
- 3 ( 0.02%) 4,000,004 (98.57%) 5,000,015 (95.61%) /home/njn/grind/ws2/a.c:main
+ 3 ( 0.02%) 4,000,004 (98.57%) 5,000,015 (95.61%) a.c:main
4,543 (25.23%) 17,566 ( 0.43%) 47,993 ( 0.92%) /build/glibc-OTsEL5/glibc-2.27/elf/dl-lookup.c:do_lookup_x
3,083 (17.12%) 5,750 ( 0.14%) 28,534 ( 0.55%) /build/glibc-OTsEL5/glibc-2.27/elf/dl-lookup.c:_dl_lookup_symbol_x
8 ( 0.04%) 5,521 ( 0.14%) 28,136 ( 0.54%) /build/glibc-OTsEL5/glibc-2.27/elf/dl-tunables.c:__GI___tunables_init
0 5,158 ( 0.13%) 25,408 ( 0.49%) /build/glibc-OTsEL5/glibc-2.27/string/../sysdeps/x86_64/strcmp.S:strcmp
--------------------------------------------------------------------------------
--- Auto-annotated source: /home/njn/grind/ws2/a.c
+-- Auto-annotated source: a.c
--------------------------------------------------------------------------------
Dw Dr Ir
fl=/build/glibc-OTsEL5/glibc-2.27/wcsmbs/../sysdeps/x86_64/multiarch/wmemset.c
fn=wmemset
31 2 0 0 2 0 0 0 0 0
-fl=/home/njn/grind/ws2/a.c
+fl=a.c
fn=main
1 2 0 0 0 0 0 1 0 0
2 1 1 1 0 0 0 1 0 0
Events shown: Ir I1mr ILmr
Event sort order: Ir I1mr ILmr Dr D1mr DLmr Dw D1mw DLmw
Thresholds: 99 0 0 0 0 0 0 0 0
-Include dirs:
+Include dirs: ../../cachegrind/tests/
User annotated:
Auto-annotation: on
--------------------------------------------------------------------------------
Ir I1mr ILmr file:function
--------------------------------------------------------------------------------
-5,000,015 1 1 /home/njn/grind/ws2/a.c:main
+5,000,015 1 1 a.c:main
47,993 19 19 /build/glibc-OTsEL5/glibc-2.27/elf/dl-lookup.c:do_lookup_x
28,534 11 11 /build/glibc-OTsEL5/glibc-2.27/elf/dl-lookup.c:_dl_lookup_symbol_x
28,136 7 7 /build/glibc-OTsEL5/glibc-2.27/elf/dl-tunables.c:__GI___tunables_init
6,898 2 2 /build/glibc-OTsEL5/glibc-2.27/elf/dl-misc.c:_dl_name_match_p
--------------------------------------------------------------------------------
--- Auto-annotated source: /home/njn/grind/ws2/a.c
+-- Auto-annotated source: ../../cachegrind/tests/ + a.c
--------------------------------------------------------------------------------
Ir I1mr ILmr
# the post-processing of the cgout-test file.
prog: ../../tests/true
vgopts: --callgrind-out-file=callgrind.out
-post: perl ../../callgrind/callgrind_annotate --show=Ir,I1mr,ILmr --auto=yes ../../cachegrind/tests/cgout-test
+post: perl ../../callgrind/callgrind_annotate --show=Ir,I1mr,ILmr --auto=yes --include=../../cachegrind/tests ../../cachegrind/tests/cgout-test
cleanup: rm callgrind.out
Events shown: Dw Dr Ir
Event sort order: Dr
Thresholds: 99
-Include dirs:
+Include dirs: ../../cachegrind/tests/
User annotated:
Auto-annotation: on
--------------------------------------------------------------------------------
Dw Dr Ir file:function
--------------------------------------------------------------------------------
- 3 ( 0.02%) 4,000,004 (98.57%) 5,000,015 (95.61%) /home/njn/grind/ws2/a.c:main
+ 3 ( 0.02%) 4,000,004 (98.57%) 5,000,015 (95.61%) a.c:main
4,543 (25.23%) 17,566 ( 0.43%) 47,993 ( 0.92%) /build/glibc-OTsEL5/glibc-2.27/elf/dl-lookup.c:do_lookup_x
--------------------------------------------------------------------------------
--- Auto-annotated source: /home/njn/grind/ws2/a.c
+-- Auto-annotated source: ../../cachegrind/tests/ + a.c
--------------------------------------------------------------------------------
Dw Dr Ir
# the post-processing of the cgout-test file.
prog: ../../tests/true
vgopts: --callgrind-out-file=callgrind.out
-post: perl ../../callgrind/callgrind_annotate --sort=Dr --show=Dw,Dr,Ir --auto=yes --show-percs=yes ../../cachegrind/tests/cgout-test
+post: perl ../../callgrind/callgrind_annotate --sort=Dr --show=Dw,Dr,Ir --auto=yes --include=../../cachegrind/tests --show-percs=yes ../../cachegrind/tests/cgout-test
cleanup: rm callgrind.out