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 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 231 24# Trace Stream Size: 251 26# Weight 271 28a, b, c 29 30 31a 32# Func Hash: 330x1234 34# Num Counters: 351 36# Counter Values: 37101 38 39b 400x5678 411 42202 43 44c 450xabcd 461 47303 48