brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.5 KiB · 9d59ede Raw
24 lines · plain
1Basic tests for cutoff options in show command.2 3RUN: llvm-profdata show -value-cutoff=1 %p/Inputs/cutoff.proftext | FileCheck %s -check-prefixes=CUTOFF1,CHECK4RUN: llvm-profdata show -value-cutoff=1000 %p/Inputs/cutoff.proftext | FileCheck %s -check-prefixes=CUTOFF1000,CHECK5RUN: llvm-profdata show -all-functions -value-cutoff=1 %p/Inputs/cutoff.proftext | FileCheck %s -check-prefixes=CUTOFF1FUNC,CUTOFF1,CHECK6RUN: llvm-profdata show -all-functions -value-cutoff=1000 %p/Inputs/cutoff.proftext | FileCheck %s -check-prefixes=CUTOFF1000FUNC,CUTOFF1000,CHECK7RUN: llvm-profdata show -value-cutoff=1 -list-below-cutoff %p/Inputs/cutoff.proftext | FileCheck %s -check-prefixes=BELOW1,CUTOFF1,CHECK8RUN: llvm-profdata show -value-cutoff=1000 -list-below-cutoff %p/Inputs/cutoff.proftext | FileCheck %s -check-prefixes=BELOW1000,CUTOFF1000,CHECK9CUTOFF1FUNC-NOT: bar10CUTOFF1FUNC: Functions shown: 211CUTOFF1000FUNC-NOT: bar12CUTOFF1000FUNC-NOT: foo13CUTOFF1000FUNC: Functions shown: 114BELOW1: The list of functions with the maximum counter less than 1:15BELOW1:  bar: (Max = 0 Sum = 0)16BELOW1000:The list of functions with the maximum counter less than 1000:17BELOW1000:  bar: (Max = 0 Sum = 0)18BELOW1000:  foo: (Max = 999 Sum = 1000)19CHECK: Total functions: 320CUTOFF1: Number of functions with maximum count (< 1): 121CUTOFF1: Number of functions with maximum count (>= 1): 222CUTOFF1000: Number of functions with maximum count (< 1000): 223CUTOFF1000: Number of functions with maximum count (>= 1000): 124