[HLSL] Implement RWBuffer::operator[] via __builtin_hlsl_resource_getpointer (#117017)
[llvm-project.git] / llvm / test / tools / llvm-profdata / memprof-basic.test
blobe15df50bc16577b76933835f1f18394c3f66ab87
1 REQUIRES: x86_64-linux
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/basic.memprofraw --profiled-binary %p/Inputs/basic.memprofexe -o - | FileCheck %s
6 We expect 2 MIB entries, 1 each for the malloc calls in the program. Any
7 additional allocations which do not originate from the main binary are pruned.
9 CHECK:  MemprofProfile:
10 CHECK-NEXT:   Summary:
11 CHECK-NEXT:     Version: 4
12 CHECK-NEXT:     NumSegments: {{[0-9]+}}
13 CHECK-NEXT:     NumMibInfo: 2
14 CHECK-NEXT:     NumAllocFunctions: 1
15 CHECK-NEXT:     NumStackOffsets: 2
16 CHECK-NEXT:   Segments:
17 CHECK-NEXT:   -
18 CHECK-NEXT:     BuildId: {{[[:xdigit:]]+}}
19 CHECK-NEXT:     Start: 0x{{[[:xdigit:]]+}}
20 CHECK-NEXT:     End: 0x{{[[:xdigit:]]+}}
21 CHECK-NEXT:     Offset: 0x{{[[:xdigit:]]+}}
22 CHECK-NEXT:   -
24 CHECK:   Records:
25 CHECK-NEXT:   -
26 CHECK-NEXT:     FunctionGUID: {{[0-9]+}}
27 CHECK-NEXT:     AllocSites:
28 CHECK-NEXT:     -
29 CHECK-NEXT:       Callstack:
30 CHECK-NEXT:       -
31 CHECK-NEXT:         Function: {{[0-9]+}}
32 CHECK-NEXT:         SymbolName: main
33 CHECK-NEXT:         LineOffset: 1
34 CHECK-NEXT:         Column: 21
35 CHECK-NEXT:         Inline: 0
36 CHECK-NEXT:       MemInfoBlock:
37 CHECK-NEXT:         AllocCount: 1
38 CHECK-NEXT:         TotalAccessCount: 2
39 CHECK-NEXT:         MinAccessCount: 2
40 CHECK-NEXT:         MaxAccessCount: 2
41 CHECK-NEXT:         TotalSize: 10
42 CHECK-NEXT:         MinSize: 10
43 CHECK-NEXT:         MaxSize: 10
44 CHECK-NEXT:         AllocTimestamp: {{[0-9]+}}
45 CHECK-NEXT:         DeallocTimestamp: {{[0-9]+}}
46 CHECK-NEXT:         TotalLifetime: 0
47 CHECK-NEXT:         MinLifetime: 0
48 CHECK-NEXT:         MaxLifetime: 0
49 CHECK-NEXT:         AllocCpuId: {{[0-9]+}}
50 CHECK-NEXT:         DeallocCpuId: {{[0-9]+}}
51 CHECK-NEXT:         NumMigratedCpu: 0
52 CHECK-NEXT:         NumLifetimeOverlaps: 0
53 CHECK-NEXT:         NumSameAllocCpu: 0
54 CHECK-NEXT:         NumSameDeallocCpu: 0
55 CHECK-NEXT:         DataTypeId: {{[0-9]+}}
56 CHECK-NEXT:         TotalAccessDensity: 20
57 CHECK-NEXT:         MinAccessDensity: 20
58 CHECK-NEXT:         MaxAccessDensity: 20
59 CHECK-NEXT:         TotalLifetimeAccessDensity: 20000
60 CHECK-NEXT:         MinLifetimeAccessDensity: 20000
61 CHECK-NEXT:         MaxLifetimeAccessDensity: 20000
62 CHECK-NEXT:         AccessHistogramSize: 0
63 CHECK-NEXT:         AccessHistogram: 0
64 CHECK-NEXT:     -
65 CHECK-NEXT:       Callstack:
66 CHECK-NEXT:       -
67 CHECK-NEXT:         Function: {{[0-9]+}}
68 CHECK-NEXT:         SymbolName: main
69 CHECK-NEXT:         LineOffset: 4
70 CHECK-NEXT:         Column: 15
71 CHECK-NEXT:         Inline: 0
72 CHECK-NEXT:       MemInfoBlock:
73 CHECK-NEXT:         AllocCount: 1
74 CHECK-NEXT:         TotalAccessCount: 2
75 CHECK-NEXT:         MinAccessCount: 2
76 CHECK-NEXT:         MaxAccessCount: 2
77 CHECK-NEXT:         TotalSize: 10
78 CHECK-NEXT:         MinSize: 10
79 CHECK-NEXT:         MaxSize: 10
80 CHECK-NEXT:         AllocTimestamp: {{[0-9]+}}
81 CHECK-NEXT:         DeallocTimestamp: {{[0-9]+}}
82 CHECK-NEXT:         TotalLifetime: 0
83 CHECK-NEXT:         MinLifetime: 0
84 CHECK-NEXT:         MaxLifetime: 0
85 CHECK-NEXT:         AllocCpuId: {{[0-9]+}}
86 CHECK-NEXT:         DeallocCpuId: {{[0-9]+}}
87 CHECK-NEXT:         NumMigratedCpu: 0
88 CHECK-NEXT:         NumLifetimeOverlaps: 0
89 CHECK-NEXT:         NumSameAllocCpu: 0
90 CHECK-NEXT:         NumSameDeallocCpu: 0
91 CHECK-NEXT:         DataTypeId: {{[0-9]+}}
92 CHECK-NEXT:         TotalAccessDensity: 20
93 CHECK-NEXT:         MinAccessDensity: 20
94 CHECK-NEXT:         MaxAccessDensity: 20
95 CHECK-NEXT:         TotalLifetimeAccessDensity: 20000
96 CHECK-NEXT:         MinLifetimeAccessDensity: 20000
97 CHECK-NEXT:         MaxLifetimeAccessDensity: 20000
98 CHECK-NEXT:         AccessHistogramSize: 0
99 CHECK-NEXT:         AccessHistogram: 0