1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/test/tools/llvm-profdata/compact-sample.proftext
Wenlei He 2b7cf1e1b8 [llvm-profdata] Profile dump for compact binary format
Summary: Fix "llvm-profdata show" so it can work with compact binary format profile. The change is to mark all functions "used" so SampleProfileReaderCompactBinary::read will read in all profiles available for dumping. The function names will be MD5 hash for compact binary format.

Reviewers: wmi, davidxl, danielcdh

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D65162

llvm-svn: 368731
2019-08-13 17:56:08 +00:00

9 lines
404 B
Plaintext

# 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