| 1 |
# RUN: llvm-profdata merge --temporal-profile-max-trace-length=0 %s -o %t.profdata |
| 2 |
# RUN: llvm-profdata show --temporal-profile-traces %t.profdata | FileCheck %s --check-prefix=NONE |
| 3 |
|
| 4 |
# RUN: llvm-profdata merge --temporal-profile-trace-reservoir-size=2 %s %s %s %s -o %t.profdata |
| 5 |
# RUN: llvm-profdata merge --temporal-profile-trace-reservoir-size=2 --temporal-profile-max-trace-length=0 %t.profdata -o %t.profdata |
| 6 |
# RUN: llvm-profdata show --temporal-profile-traces %t.profdata | FileCheck %s --check-prefix=NONE |
| 7 |
|
| 8 |
# RUN: llvm-profdata merge --temporal-profile-max-trace-length=2 %s -o %t.profdata |
| 9 |
# RUN: llvm-profdata show --temporal-profile-traces %t.profdata | FileCheck %s --check-prefixes=CHECK,SOME |
| 10 |
|
| 11 |
# RUN: llvm-profdata merge --temporal-profile-max-trace-length=1000 %s -o %t.profdata |
| 12 |
# RUN: llvm-profdata show --temporal-profile-traces %t.profdata | FileCheck %s --check-prefixes=CHECK,ALL |
| 13 |
|
| 14 |
# NONE: Temporal Profile Traces (samples=0 seen=0): |
| 15 |
# CHECK: Temporal Profile Traces (samples=1 seen=1): |
| 16 |
# SOME: Trace 0 (weight=1 count=2): |
| 17 |
# ALL: Trace 0 (weight=1 count=3): |
| 18 |
|
| 19 |
# Header |
| 20 |
:ir |
| 21 |
:temporal_prof_traces |
| 22 |
# Num Traces |
| 23 |
1 |
| 24 |
# Trace Stream Size: |
| 25 |
1 |
| 26 |
# Weight |
| 27 |
1 |
| 28 |
a, b, c |
| 29 |
|
| 30 |
|
| 31 |
a |
| 32 |
# Func Hash: |
| 33 |
0x1234 |
| 34 |
# Num Counters: |
| 35 |
1 |
| 36 |
# Counter Values: |
| 37 |
101 |
| 38 |
|
| 39 |
b |
| 40 |
0x5678 |
| 41 |
1 |
| 42 |
202 |
| 43 |
|
| 44 |
c |
| 45 |
0xabcd |
| 46 |
1 |
| 47 |
303 |