• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1RUN: printf '\201rforpl\377' > %t-foo.profraw
2RUN: printf '\2\0\0\0\0\0\0\0' >> %t-foo.profraw
3RUN: printf '\1\0\0\0\0\0\0\0' >> %t-foo.profraw
4RUN: printf '\1\0\0\0\0\0\0\0' >> %t-foo.profraw
5RUN: printf '\3\0\0\0\0\0\0\0' >> %t-foo.profraw
6RUN: printf '\0\0\4\0\1\0\0\0' >> %t-foo.profraw
7RUN: printf '\0\0\4\0\2\0\0\0' >> %t-foo.profraw
8RUN: printf '\0\0\0\0\0\0\0\0' >> %t-foo.profraw
9RUN: printf '\0\0\0\0\0\0\0\0' >> %t-foo.profraw
10RUN: printf '\0\0\0\0\0\0\0\0' >> %t-foo.profraw
11
12RUN: printf '\3\0\0\0' >> %t-foo.profraw
13RUN: printf '\1\0\0\0' >> %t-foo.profraw
14RUN: printf '\1\0\0\0\0\0\0\0' >> %t-foo.profraw
15RUN: printf '\0\0\4\0\2\0\0\0' >> %t-foo.profraw
16RUN: printf '\0\0\4\0\1\0\0\0' >> %t-foo.profraw
17RUN: printf '\0\0\0\0\0\0\0\0' >> %t-foo.profraw
18RUN: printf '\0\0\0\0\0\0\0\0' >> %t-foo.profraw
19RUN: printf '\0\0\0\0\0\0\0\0' >> %t-foo.profraw
20
21RUN: printf '\023\0\0\0\0\0\0\0' >> %t-foo.profraw
22RUN: printf 'foo\0\0\0\0\0' >> %t-foo.profraw
23
24RUN: printf '\201rforpl\377' > %t-bar.profraw
25RUN: printf '\2\0\0\0\0\0\0\0' >> %t-bar.profraw
26RUN: printf '\1\0\0\0\0\0\0\0' >> %t-bar.profraw
27RUN: printf '\2\0\0\0\0\0\0\0' >> %t-bar.profraw
28RUN: printf '\3\0\0\0\0\0\0\0' >> %t-bar.profraw
29RUN: printf '\0\0\6\0\1\0\0\0' >> %t-bar.profraw
30RUN: printf '\0\0\6\0\2\0\0\0' >> %t-bar.profraw
31RUN: printf '\0\0\0\0\0\0\0\0' >> %t-bar.profraw
32RUN: printf '\0\0\0\0\0\0\0\0' >> %t-bar.profraw
33RUN: printf '\0\0\0\0\0\0\0\0' >> %t-bar.profraw
34
35RUN: printf '\3\0\0\0' >> %t-bar.profraw
36RUN: printf '\2\0\0\0' >> %t-bar.profraw
37RUN: printf '\2\0\0\0\0\0\0\0' >> %t-bar.profraw
38RUN: printf '\0\0\6\0\2\0\0\0' >> %t-bar.profraw
39RUN: printf '\0\0\6\0\1\0\0\0' >> %t-bar.profraw
40RUN: printf '\0\0\0\0\0\0\0\0' >> %t-bar.profraw
41RUN: printf '\0\0\0\0\0\0\0\0' >> %t-bar.profraw
42RUN: printf '\0\0\0\0\0\0\0\0' >> %t-bar.profraw
43
44RUN: printf '\067\0\0\0\0\0\0\0' >> %t-bar.profraw
45RUN: printf '\101\0\0\0\0\0\0\0' >> %t-bar.profraw
46RUN: printf 'bar\0\0\0\0\0' >> %t-bar.profraw
47
48RUN: cat %t-foo.profraw %t-bar.profraw > %t-pad.profraw
49RUN: llvm-profdata show %t-pad.profraw -all-functions -counts | FileCheck %s
50
51CHECK: Counters:
52CHECK:   foo:
53CHECK:     Hash: 0x0000000000000001
54CHECK:     Counters: 1
55CHECK:     Function count: 19
56CHECK:     Block counts: []
57CHECK:   bar:
58CHECK:     Hash: 0x0000000000000002
59CHECK:     Counters: 2
60CHECK:     Function count: 55
61CHECK:     Block counts: [65]
62CHECK: Functions shown: 2
63CHECK: Total functions: 2
64CHECK: Maximum function count: 55
65CHECK: Maximum internal block count: 65
66