File: compact-sample.proftext

package info (click to toggle)
llvm-toolchain-15 1%3A15.0.6-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,554,644 kB
  • sloc: cpp: 5,922,452; ansic: 1,012,136; asm: 674,362; python: 191,568; objc: 73,855; f90: 42,327; lisp: 31,913; pascal: 11,973; javascript: 10,144; sh: 9,421; perl: 7,447; ml: 5,527; awk: 3,523; makefile: 2,520; xml: 885; 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%