1; RUN: llvm-profdata show --sample --hot-func-list %S/Inputs/sample-hot-func-list.proftext | FileCheck %s --match-full-lines --strict-whitespace
2
3;      CHECK:8 out of 10 functions with profile (80.00%) are considered hot functions (max sample >= 470).
4; CHECK-NEXT:355251 out of 356026 profile counts (99.78%) are from hot functions.
5; CHECK-NEXT: Total sample (%)       Max sample        Entry sample    Function name
6; CHECK-NEXT: 184019 (51.69%)        2300              534             main
7; CHECK-NEXT: 97401 (27.36%)         10640             3035            Func3
8; CHECK-NEXT: 20305 (5.70%)          1000              1000            _Z3bazi
9; CHECK-NEXT: 20301 (5.70%)          1437              1437            _Z3bari
10; CHECK-NEXT: 17043 (4.79%)          3105              1594            Func2
11; CHECK-NEXT: 7711 (2.17%)           610               610             _Z3fooi
12; CHECK-NEXT: 6948 (1.95%)           3507              470             Func5
13; CHECK-NEXT: 1523 (0.43%)           563               169             Func1
14