brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.7 KiB · 91a8d81 Raw
38 lines · plain
1; RUN: llvm-profdata show --sample --hot-func-list %S/Inputs/sample-hot-func-list.proftext | FileCheck %s --match-full-lines --strict-whitespace2 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 name6; CHECK-NEXT: 184019 (51.69%)        2300              534             main7; CHECK-NEXT: 97401 (27.36%)         10640             3035            Func38; CHECK-NEXT: 20305 (5.70%)          1000              1000            _Z3bazi9; CHECK-NEXT: 20301 (5.70%)          1437              1437            _Z3bari10; CHECK-NEXT: 17043 (4.79%)          3105              1594            Func211; CHECK-NEXT: 7711 (2.17%)           610               610             _Z3fooi12; CHECK-NEXT: 6948 (1.95%)           3507              470             Func513; CHECK-NEXT: 1523 (0.43%)           563               169             Func114 15; RUN: llvm-profdata show --sample --hot-func-list %S/Inputs/cs-sample.proftext | FileCheck %s --match-full-lines --strict-whitespace --check-prefix=CS16 17;      CS:2 out of 8 functions with profile (25.00%) are considered hot functions (max sample >= 23324).18; CS-NEXT:1968152 out of 1968919 profile counts (99.96%) are from hot functions.19; CS-NEXT: Total sample (%)       Max sample        Entry sample    Function name20; CS-NEXT: 1467299 (74.52%)       287884            11              main:3 @ _Z5funcAi:1 @ _Z8funcLeafi21; CS-NEXT: 500853 (25.44%)        74946             20              main:3.1 @ _Z5funcBi:1 @ _Z8funcLeafi22 23 24; RUN: llvm-profdata show --sample --topn=2 %S/Inputs/sample-hot-func-list.proftext | FileCheck %s --match-full-lines --strict-whitespace --check-prefix=TOPN25 26;      TOPN:8 out of 10 functions with profile (80.00%) are considered hot functions (max sample >= 470).27; TOPN-NEXT:355251 out of 356026 profile counts (99.78%) are from hot functions.28; TOPN-NEXT: Total sample (%)       Max sample        Entry sample    Function name29; TOPN-NEXT: 184019 (51.69%)        2300              534             main30; TOPN-NEXT: 97401 (27.36%)         10640             3035            Func331 32; RUN: llvm-profdata show --sample --topn=1 %S/Inputs/cs-sample.proftext | FileCheck %s --match-full-lines --strict-whitespace --check-prefix=CS-TOPN33 34;      CS-TOPN:2 out of 8 functions with profile (25.00%) are considered hot functions (max sample >= 23324).35; CS-TOPN-NEXT:1968152 out of 1968919 profile counts (99.96%) are from hot functions.36; CS-TOPN-NEXT: Total sample (%)       Max sample        Entry sample    Function name37; CS-TOPN-NEXT: 1467299 (74.52%)       287884            11              main:3 @ _Z5funcAi:1 @ _Z8funcLeafi38