3 To update the inputs used below run Inputs/update_memprof_inputs.sh /path/to/updated/clang
4 RUN: llvm-profdata show --memory %p/Inputs/inline.memprofraw --profiled-binary %p/Inputs/inline.memprofexe | FileCheck %s
9 CHECK-NEXT: NumSegments: {{[0-9]+}}
10 CHECK-NEXT: NumMibInfo: 2
11 CHECK-NEXT: NumAllocFunctions: 2
12 CHECK-NEXT: NumStackOffsets: 1
15 CHECK-NEXT: BuildId: {{[[:xdigit:]]+}}
16 CHECK-NEXT: Start: 0x{{[[:xdigit:]]+}}
17 CHECK-NEXT: End: 0x{{[[:xdigit:]]+}}
18 CHECK-NEXT: Offset: 0x{{[[:xdigit:]]+}}
23 CHECK-NEXT: FunctionGUID: 15505678318020221912
24 CHECK-NEXT: AllocSites:
26 CHECK-NEXT: Callstack:
28 CHECK-NEXT: Function: 15505678318020221912
29 CHECK-NEXT: SymbolName: qux
30 CHECK-NEXT: LineOffset: 1
31 CHECK-NEXT: Column: 15
34 CHECK-NEXT: Function: 6699318081062747564
35 CHECK-NEXT: SymbolName: foo
36 CHECK-NEXT: LineOffset: 0
37 CHECK-NEXT: Column: 18
40 CHECK-NEXT: Function: 16434608426314478903
41 CHECK-NEXT: SymbolName: bar
42 CHECK-NEXT: LineOffset: 0
43 CHECK-NEXT: Column: 19
46 CHECK-NEXT: Function: 15822663052811949562
47 CHECK-NEXT: SymbolName: main
48 CHECK-NEXT: LineOffset: 1
51 CHECK-NEXT: MemInfoBlock:
52 CHECK-NEXT: AllocCount: 1
53 CHECK-NEXT: TotalAccessCount: 1
54 CHECK-NEXT: MinAccessCount: 1
55 CHECK-NEXT: MaxAccessCount: 1
56 CHECK-NEXT: TotalSize: 1
57 CHECK-NEXT: MinSize: 1
58 CHECK-NEXT: MaxSize: 1
59 CHECK-NEXT: AllocTimestamp: {{[0-9]+}}
60 CHECK-NEXT: DeallocTimestamp: {{[0-9]+}}
61 CHECK-NEXT: TotalLifetime: 0
62 CHECK-NEXT: MinLifetime: 0
63 CHECK-NEXT: MaxLifetime: 0
64 CHECK-NEXT: AllocCpuId: {{[0-9]+}}
65 CHECK-NEXT: DeallocCpuId: {{[0-9]+}}
66 CHECK-NEXT: NumMigratedCpu: 0
67 CHECK-NEXT: NumLifetimeOverlaps: 0
68 CHECK-NEXT: NumSameAllocCpu: 0
69 CHECK-NEXT: NumSameDeallocCpu: 0
70 CHECK-NEXT: DataTypeId: {{[0-9]+}}
71 CHECK-NEXT: TotalAccessDensity: 100
72 CHECK-NEXT: MinAccessDensity: 100
73 CHECK-NEXT: MaxAccessDensity: 100
74 CHECK-NEXT: TotalLifetimeAccessDensity: 100000
75 CHECK-NEXT: MinLifetimeAccessDensity: 100000
76 CHECK-NEXT: MaxLifetimeAccessDensity: 100000
78 CHECK-NEXT: FunctionGUID: 6699318081062747564
79 CHECK-NEXT: AllocSites:
81 CHECK-NEXT: Callstack:
83 CHECK-NEXT: Function: 15505678318020221912
84 CHECK-NEXT: SymbolName: qux
85 CHECK-NEXT: LineOffset: 1
86 CHECK-NEXT: Column: 15
89 CHECK-NEXT: Function: 6699318081062747564
90 CHECK-NEXT: SymbolName: foo
91 CHECK-NEXT: LineOffset: 0
92 CHECK-NEXT: Column: 18
95 CHECK-NEXT: Function: 16434608426314478903
96 CHECK-NEXT: SymbolName: bar
97 CHECK-NEXT: LineOffset: 0
98 CHECK-NEXT: Column: 19
101 CHECK-NEXT: Function: 15822663052811949562
102 CHECK-NEXT: SymbolName: main
103 CHECK-NEXT: LineOffset: 1
104 CHECK-NEXT: Column: 3
105 CHECK-NEXT: Inline: 0
106 CHECK-NEXT: MemInfoBlock:
107 CHECK-NEXT: AllocCount: 1
108 CHECK-NEXT: TotalAccessCount: 1
109 CHECK-NEXT: MinAccessCount: 1
110 CHECK-NEXT: MaxAccessCount: 1
111 CHECK-NEXT: TotalSize: 1
112 CHECK-NEXT: MinSize: 1
113 CHECK-NEXT: MaxSize: 1
114 CHECK-NEXT: AllocTimestamp: {{[0-9]+}}
115 CHECK-NEXT: DeallocTimestamp: {{[0-9]+}}
116 CHECK-NEXT: TotalLifetime: 0
117 CHECK-NEXT: MinLifetime: 0
118 CHECK-NEXT: MaxLifetime: 0
119 CHECK-NEXT: AllocCpuId: {{[0-9]+}}
120 CHECK-NEXT: DeallocCpuId: {{[0-9]+}}
121 CHECK-NEXT: NumMigratedCpu: 0
122 CHECK-NEXT: NumLifetimeOverlaps: 0
123 CHECK-NEXT: NumSameAllocCpu: 0
124 CHECK-NEXT: NumSameDeallocCpu: 0
125 CHECK-NEXT: DataTypeId: {{[0-9]+}}
126 CHECK-NEXT: TotalAccessDensity: 100
127 CHECK-NEXT: MinAccessDensity: 100
128 CHECK-NEXT: MaxAccessDensity: 100
129 CHECK-NEXT: TotalLifetimeAccessDensity: 100000
130 CHECK-NEXT: MinLifetimeAccessDensity: 100000
131 CHECK-NEXT: MaxLifetimeAccessDensity: 100000
132 CHECK-NEXT: CallSites:
135 CHECK-NEXT: Function: 15505678318020221912
136 CHECK-NEXT: SymbolName: qux
137 CHECK-NEXT: LineOffset: 1
138 CHECK-NEXT: Column: 15
139 CHECK-NEXT: Inline: 1
142 CHECK-NEXT: Function: 6699318081062747564
143 CHECK-NEXT: SymbolName: foo
144 CHECK-NEXT: LineOffset: 0
145 CHECK-NEXT: Column: 18
146 CHECK-NEXT: Inline: 0
148 CHECK-NEXT: FunctionGUID: 16434608426314478903
149 CHECK-NEXT: CallSites:
152 CHECK-NEXT: Function: 16434608426314478903
153 CHECK-NEXT: SymbolName: bar
154 CHECK-NEXT: LineOffset: 0
155 CHECK-NEXT: Column: 19
156 CHECK-NEXT: Inline: 0
158 CHECK-NEXT: FunctionGUID: 15822663052811949562
159 CHECK-NEXT: CallSites:
162 CHECK-NEXT: Function: 15822663052811949562
163 CHECK-NEXT: SymbolName: main
164 CHECK-NEXT: LineOffset: 1
165 CHECK-NEXT: Column: 3
166 CHECK-NEXT: Inline: 0