CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
32 lines
1.5 KiB
Plaintext
32 lines
1.5 KiB
Plaintext
Tests for conversion between text and binary encoded sample profiles.
|
|
|
|
1- Encode the original profile into binary form. All the tests below will use
|
|
the binary profile.
|
|
RUN: llvm-profdata merge --sample %p/Inputs/inline-samples.afdo -o %t.profbin
|
|
|
|
2- Show all functions. This profile has a single main() function with several
|
|
inlined callees.
|
|
RUN: llvm-profdata show --sample %t.profbin | FileCheck %s --check-prefix=SHOW1
|
|
SHOW1: Function: main: 366846, 0, 6 sampled lines
|
|
SHOW1: 2.3: inlined callee: _Z3fool: 246044, 0, 3 sampled lines
|
|
SHOW1: 1.3: inlined callee: _Z3bari: 0, 0, 2 sampled lines
|
|
SHOW1: 1.7: inlined callee: _Z3bari: 99492, 0, 2 sampled lines
|
|
SHOW1: 1.2: 46732
|
|
SHOW1: 1.8: inlined callee: _Z3bari: 0, 0, 2 sampled lines
|
|
|
|
3- Convert the binary profile to text encoding and check that they are both
|
|
identical.
|
|
RUN: llvm-profdata merge --sample %t.profbin --text -o - | llvm-profdata show --sample - -o %t-bintext
|
|
RUN: llvm-profdata show --sample %p/Inputs/inline-samples.afdo -o %t-text
|
|
RUN: diff %t-bintext %t-text
|
|
|
|
4- Merge the binary and text encodings of the profile and check that the
|
|
counters have doubled.
|
|
RUN: llvm-profdata merge --sample --text %t.profbin %p/Inputs/inline-samples.afdo -o - | FileCheck %s --check-prefix=MERGE1
|
|
RUN: llvm-profdata merge --sample --text - < %t.profbin %p/Inputs/inline-samples.afdo -o - | FileCheck %s --check-prefix=MERGE1
|
|
MERGE1: main:733692:0
|
|
MERGE1: 2.3: 120802
|
|
MERGE1: 2.3: _Z3fool:492088
|
|
MERGE1: 1.7: _Z3bari:198984
|
|
MERGE1: 1.1: 105520
|