blob: 65b601e496a3e1cbeee5c37aeea6f6ad3f0949a5 [file] [log] [blame] [edit]
RUN: llvm-profgen --perfscript=%p/Inputs/lbr-perf-for-dap.script --data-access-perftrace=%p/Inputs/dap-perf-trace.txt \
RUN: --binary=%p/Inputs/dap.bin --format=text --pid=3446532 \
RUN: -ignore-stack-samples -use-dwarf-correlation -o %t.afdo
RUN: llvm-profdata show --sample --function=_Z9loop_funciii %t.afdo 2>&1 | FileCheck %s
CHECK: Function: _Z9loop_funciii: 958, 15, 5 sampled lines
CHECK-NEXT: Samples collected in the function's body {
CHECK-NEXT: 0: 15
CHECK-NEXT: 1: 19, calls: _Z10createTypei:15
CHECK-NEXT: 3: 19, calls: _ZN12_GLOBAL__N_18Derived24funcEii:16 _ZN8Derived14funcEii:3
CHECK-NEXT: 3: vtables: _ZTV8Derived1:16 _ZTVN12_GLOBAL__N_18Derived2E:5
CHECK-NEXT: 5.1: 19, calls: _ZN12_GLOBAL__N_18Derived2D0Ev:16 _ZN8Derived1D0Ev:3
CHECK-NEXT: 5.1: vtables: _ZTV8Derived1:9 _ZTVN12_GLOBAL__N_18Derived2E:3
CHECK-NEXT: 7: 12
CHECK-NEXT: }
CHECK-NEXT: No inlined callsites in this function