• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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,CHECK
4RUN: llvm-profdata show -value-cutoff=1000 %p/Inputs/cutoff.proftext | FileCheck %s -check-prefixes=CUTOFF1000,CHECK
5RUN: llvm-profdata show -all-functions -value-cutoff=1 %p/Inputs/cutoff.proftext | FileCheck %s -check-prefixes=CUTOFF1FUNC,CUTOFF1,CHECK
6RUN: llvm-profdata show -all-functions -value-cutoff=1000 %p/Inputs/cutoff.proftext | FileCheck %s -check-prefixes=CUTOFF1000FUNC,CUTOFF1000,CHECK
7RUN: llvm-profdata show -value-cutoff=1 -list-below-cutoff %p/Inputs/cutoff.proftext | FileCheck %s -check-prefixes=BELOW1,CUTOFF1,CHECK
8RUN: llvm-profdata show -value-cutoff=1000 -list-below-cutoff %p/Inputs/cutoff.proftext | FileCheck %s -check-prefixes=BELOW1000,CUTOFF1000,CHECK
9CUTOFF1FUNC-NOT: bar
10CUTOFF1FUNC: Functions shown: 2
11CUTOFF1000FUNC-NOT: bar
12CUTOFF1000FUNC-NOT: foo
13CUTOFF1000FUNC: Functions shown: 1
14BELOW1: 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: 3
20CUTOFF1: Number of functions with maximum count (< 1): 1
21CUTOFF1: Number of functions with maximum count (>= 1): 2
22CUTOFF1000: Number of functions with maximum count (< 1000): 2
23CUTOFF1000: Number of functions with maximum count (>= 1000): 1
24