summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-profdata/compact-sample.proftext
diff options
context:
space:
mode:
authorWenlei He <aktoon@gmail.com>2019-08-13 17:56:08 +0000
committerWenlei He <aktoon@gmail.com>2019-08-13 17:56:08 +0000
commitd328954467f406895ba4306eee1109aad6b18797 (patch)
tree60e2c12b1d6259d784555650746e0d70af617b10 /llvm/test/tools/llvm-profdata/compact-sample.proftext
parent9e51fb6c576205c4ada59675d89443df10b4abff (diff)
downloadbcm5719-llvm-d328954467f406895ba4306eee1109aad6b18797.tar.gz
bcm5719-llvm-d328954467f406895ba4306eee1109aad6b18797.zip
[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
Diffstat (limited to 'llvm/test/tools/llvm-profdata/compact-sample.proftext')
-rw-r--r--llvm/test/tools/llvm-profdata/compact-sample.proftext8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-profdata/compact-sample.proftext b/llvm/test/tools/llvm-profdata/compact-sample.proftext
new file mode 100644
index 00000000000..6eac2a071a6
--- /dev/null
+++ b/llvm/test/tools/llvm-profdata/compact-sample.proftext
@@ -0,0 +1,8 @@
+# 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
OpenPOWER on IntegriCloud