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