brintos

brintos / llvm-project-archived public Read only

0
0
Text · 4.0 KiB · 89762f2 Raw
89 lines · plain
1# RUN: llvm-profdata merge -sparse=true %s -o %t.profdata2 3# RUN: llvm-profdata merge -sparse=false %s -o %t.profdata.dense4 5# RUN: llvm-profdata show %t.profdata --function function_count_only --counts | FileCheck %s -check-prefix=FUNC_COUNT_ONLY6function_count_only708199753110# FUNC_COUNT_ONLY:      Hash: 0x{{0+$}}11# FUNC_COUNT_ONLY-NEXT: Counters: 112# FUNC_COUNT_ONLY-NEXT: Function count: 9753113# FUNC_COUNT_ONLY-NEXT: Block counts: []14 15# RUN: llvm-profdata show %t.profdata.dense --function "name with spaces" --counts | FileCheck %s -check-prefix=SPACES16# RUN: llvm-profdata show %t.profdata --function "name with spaces" --counts | FileCheck %s --check-prefix=SPARSE_SPACES17name with spaces18102419220021022# SPACES:      Hash: 0x{{0+}}40023# SPACES-NEXT: Counters: 224# SPACES-NEXT: Function count: 025# SPACES-NEXT: Block counts: [0]26# SPARSE_SPACES-NOT: Function count: 027 28# RUN: llvm-profdata show %t.profdata --function large_numbers --counts | FileCheck %s -check-prefix=LARGENUM29large_numbers304611686018427387903316322305843009213693952331152921504606846976345764607523034234883528823037615171174436144115188075855872377205759403792793638# LARGENUM:      Hash: 0x3fffffffffffffff39# LARGENUM-NEXT: Counters: 640# LARGENUM-NEXT: Function count: 230584300921369395241# LARGENUM-NEXT: Block counts: [1152921504606846976, 576460752303423488, 288230376151711744, 144115188075855872, 72057594037927936]42 43# RUN: llvm-profdata show %t.profdata.dense --function hex_hash | FileCheck %s -check-prefix=HEX-HASH44hex_hash450x123446147048# HEX-HASH: Hash: 0x000000000000123449# HEX-HASH-NEXT: Counters: 150 51# RUN: llvm-profdata show %t.profdata --function NOSUCHFUNC | FileCheck %s -check-prefix=NOSUCHFUNC52# NOSUCHFUNC-NOT: Counters:53# NOSUCHFUNC: Functions shown: 054 55# RUN: llvm-profdata show %t.profdata --function _ | FileCheck %s -check-prefix=SOMEFUNCS56# RUN: llvm-profdata show %t.profdata.dense --function _ | FileCheck %s -check-prefix=SOMEFUNCS_DENSE57# SOMEFUNCS: Counters:58# SOMEFUNCS-DAG: large_numbers:59# SOMEFUNCS-DAG: function_count_only:60# SOMEFUNCS: Functions shown: 261# SOMEFUNCS_DENSE: Functions shown: 362 63# RUN: llvm-profdata show %t.profdata.dense | FileCheck %s -check-prefix=SUMMARY64# SUMMARY-NOT: Counters:65# SUMMARY-NOT: Functions shown:66# SUMMARY: Total functions: 467# SUMMARY: Maximum function count: 230584300921369395268# SUMMARY: Maximum internal block count: 115292150460684697669 70# RUN: llvm-profdata show --detailed-summary %t.profdata.dense | FileCheck %s -check-prefix=DETAILED-SUMMARY71# DETAILED-SUMMARY: Total number of blocks: 1072# DETAILED-SUMMARY: Total count: 453962842438955749973# DETAILED-SUMMARY: Detailed summary:74# DETAILED-SUMMARY: 3 blocks (30.00%) with count >= 576460752303423488 account for 80% of the total counts.75# DETAILED-SUMMARY: 4 blocks (40.00%) with count >= 288230376151711744 account for 90% of the total counts.76# DETAILED-SUMMARY: 4 blocks (40.00%) with count >= 288230376151711744 account for 95% of the total counts.77# DETAILED-SUMMARY: 6 blocks (60.00%) with count >= 72057594037927936 account for 99% of the total counts.78# DETAILED-SUMMARY: 6 blocks (60.00%) with count >= 72057594037927936 account for 99.9% of the total counts.79# DETAILED-SUMMARY: 6 blocks (60.00%) with count >= 72057594037927936 account for 99.99% of the total counts.80# DETAILED-SUMMARY: 6 blocks (60.00%) with count >= 72057594037927936 account for 99.999% of the total counts.81 82# RUN: llvm-profdata show --detailed-summary --detailed-summary-cutoffs=600000 %t.profdata | FileCheck %s -check-prefix=DETAILED-SUMMARY-283# DETAILED-SUMMARY-2: 2 blocks (28.57%) with count >= 1152921504606846976 account for 60% of the total counts.84#85# RUN: llvm-profdata show --detailed-summary --detailed-summary-cutoffs=600000,900000,999999 %t.profdata | FileCheck %s -check-prefix=DETAILED-SUMMARY-386# DETAILED-SUMMARY-3: 2 blocks (28.57%) with count >= 1152921504606846976 account for 60% of the total counts.87# DETAILED-SUMMARY-3: 4 blocks (57.14%) with count >= 288230376151711744 account for 90% of the total counts.88# DETAILED-SUMMARY-3: 6 blocks (85.71%) with count >= 72057594037927936 account for 99.9999% of the total counts.89