File: value-prof.proftext

package info (click to toggle)
llvm-toolchain-9 1%3A9.0.1-16
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 882,436 kB
  • sloc: cpp: 4,167,636; ansic: 714,256; asm: 457,610; python: 155,927; objc: 65,094; sh: 42,856; lisp: 26,908; perl: 7,786; pascal: 7,722; makefile: 6,881; ml: 5,581; awk: 3,648; cs: 2,027; xml: 888; javascript: 381; ruby: 156
file content (81 lines) | stat: -rw-r--r-- 1,482 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# RUN: llvm-profdata show -ic-targets  -all-functions %s | FileCheck %s --check-prefix=ICTXT --check-prefix=ICSUM
# RUN: llvm-profdata show -ic-targets -counts -text -all-functions %s | FileCheck %s --check-prefix=ICTEXT
# RUN: llvm-profdata merge -o %t.profdata  %s
# RUN: llvm-profdata show -ic-targets  -all-functions %t.profdata | FileCheck %s --check-prefix=IC --check-prefix=ICSUM

foo
# Func Hash:
10
# Num Counters:
2
# Counter Values:
999000
359800

foo2
# Func Hash:
10
# Num Counters:
2
# Counter Values:
1001000
360200

main
# Func Hash:
16650
# Num Counters:
4
# Counter Values:
2
2000
2000000
999000
# NumValueKinds
1
# Value Kind IPVK_IndirectCallTarget
0
# NumSites
3
# Values for each site
0
2
foo:100
foo2:1000
1
foo2:20000

#ICTXT: Indirect Call Site Count: 3
#ICTXT-NEXT:    Indirect Target Results:
#ICTXT-NEXT:	[ 1, foo, 100 ] (9.09%)
#ICTXT-NEXT:	[ 1, foo2, 1000 ] (90.91%)
#ICTXT-NEXT:	[ 2, foo2, 20000 ] (100.00%)

#IC: Indirect Call Site Count: 3
#IC-NEXT:    Indirect Target Results:
#IC-NEXT:	[ 1, foo2, 1000 ]
#IC-NEXT:	[ 1, foo, 100 ]
#IC-NEXT:	[ 2, foo2, 20000 ]

#ICTEXT: foo:100
#ICTEXT-NEXT: foo2:1000
#ICTEXT-NEXT: 1
#ICTEXT-NEXT: foo2:20000
#

bar
# Func Hash:
10
# Num Counters:
2
# Counter Values:
999000
359800

#ICSUM: Statistics for indirect call sites profile:
#ICSUM: Total number of sites: 3
#ICSUM: Total number of sites with values: 2
#ICSUM: Total number of profiled values: 3
#ICSUM:	NumTargets, SiteCount
#ICSUM	  1, 1
#ICSUM	  2, 1