xref: /llvm-project/llvm/test/tools/llvm-profdata/merge-traces.proftext (revision 4bddef4117403a305727d145a9abf6bda700f8ff)
1# RUN: llvm-profdata merge --temporal-profile-trace-reservoir-size=2 %s -o %t.profdata
2# RUN: llvm-profdata show --temporal-profile-traces %t.profdata | FileCheck %s --check-prefixes=SAMPLE1,SEEN1
3# RUN: llvm-profdata merge --temporal-profile-trace-reservoir-size=2 %s %t.profdata -o %t.profdata
4# RUN: llvm-profdata show --temporal-profile-traces %t.profdata | FileCheck %s --check-prefixes=SAMPLE2,SEEN2
5# RUN: llvm-profdata merge --temporal-profile-trace-reservoir-size=2 %s %t.profdata -o %t.profdata
6# RUN: llvm-profdata show --temporal-profile-traces %t.profdata | FileCheck %s --check-prefixes=SAMPLE2,SEEN3
7# RUN: llvm-profdata merge --temporal-profile-trace-reservoir-size=2 %s %t.profdata -o %t.profdata
8# RUN: llvm-profdata show --temporal-profile-traces %t.profdata | FileCheck %s --check-prefixes=SAMPLE2,SEEN4
9
10# SEEN1: Temporal Profile Traces (samples=1 seen=1):
11# SEEN2: Temporal Profile Traces (samples=2 seen=2):
12# SEEN3: Temporal Profile Traces (samples=2 seen=3):
13# SEEN4: Temporal Profile Traces (samples=2 seen=4):
14# SAMPLE1: Temporal Profile Trace 0 (weight=1 count=3):
15# SAMPLE1:   a
16# SAMPLE1:   b
17# SAMPLE1:   c
18# SAMPLE2: Temporal Profile Trace 1 (weight=1 count=3):
19# SAMPLE2:   a
20# SAMPLE2:   b
21# SAMPLE2:   c
22
23# Header
24:ir
25:temporal_prof_traces
26# Num Traces
271
28# Trace Stream Size:
291
30# Weight
311
32a, b, c
33
34
35a
36# Func Hash:
370x1234
38# Num Counters:
391
40# Counter Values:
41101
42
43b
440x5678
451
46202
47
48c
490xabcd
501
51303
52