1# Make sure "llvm-profdata show" works for sample profile in binary compact format
2
3# RUN: llvm-profdata show -sample %S/Inputs/compat-sample.profdata | FileCheck %s
4
5# CHECK: Function: 15822663052811949562: 17, 0, 6 sampled lines
6# CHECK-NEXT: Samples collected in the function's body {
7# CHECK: Samples collected in inlined callsites {
8# CHECK-NEXT: 1: inlined callee: 6309742469962978389: 17, 0, 1
9
10# RUN: llvm-profdata show -hot-func-list -sample %S/Inputs/compat-sample.profdata | FileCheck %s --check-prefix=HOTFUNC
11# HOTFUNC:      24753993 out of 24754010 profile counts (100.00%) are from hot functions.
12# HOTFUNC:       Total sample (%)       Max sample        Entry sample    Function name
13# HOTFUNC-NEXT:  24753993 (100.00%)     1284671           1284671         16429767378996342100
14
15# Make sure "llvm-profdata overlap" works for sample profile in binary compact format
16# RUN: llvm-profdata overlap -sample %S/Inputs/compat-sample.profdata %S/Inputs/compat-sample.profdata | FileCheck %s --check-prefix=OVERLAP
17
18# OVERLAP:      Program level:
19# OVERLAP-NEXT:   Whole program profile similarity: 100.000%
20# OVERLAP-NEXT:   Whole program sample overlap: 100.000%
21