File: compact-sample.proftext

package info (click to toggle)
llvm-toolchain-14 1%3A14.0.6-12
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,496,180 kB
  • sloc: cpp: 5,593,972; ansic: 986,872; asm: 585,869; python: 184,223; objc: 72,530; lisp: 31,119; f90: 27,793; javascript: 9,780; pascal: 9,762; sh: 9,482; perl: 7,468; ml: 5,432; awk: 3,523; makefile: 2,538; xml: 953; cs: 573; fortran: 567
file content (20 lines) | stat: -rw-r--r-- 1,173 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Make sure "llvm-profdata show" works for sample profile in binary compact format

# RUN: llvm-profdata show -sample %S/Inputs/compat-sample.profdata | FileCheck %s

# CHECK: Function: 15822663052811949562: 17, 0, 6 sampled lines
# CHECK-NEXT: Samples collected in the function's body {
# CHECK: Samples collected in inlined callsites {
# CHECK-NEXT: 1: inlined callee: 6309742469962978389: 17, 0, 1

# RUN: llvm-profdata show -hot-func-list -sample %S/Inputs/compat-sample.profdata | FileCheck %s --check-prefix=HOTFUNC
# HOTFUNC:      24753993 out of 24754010 profile counts (100.00%) are from hot functions.
# HOTFUNC:       Total sample (%)       Max sample        Entry sample    Function name
# HOTFUNC-NEXT:  24753993 (100.00%)     1284671           1284671         16429767378996342100

# Make sure "llvm-profdata overlap" works for sample profile in binary compact format
# RUN: llvm-profdata overlap -sample %S/Inputs/compat-sample.profdata %S/Inputs/compat-sample.profdata | FileCheck %s --check-prefix=OVERLAP

# OVERLAP:      Program level:
# OVERLAP-NEXT:   Whole program profile similarity: 100.000%
# OVERLAP-NEXT:   Whole program sample overlap: 100.000%