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