summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorXinliang David Li <davidxl@google.com>2016-05-23 16:36:11 +0000
committerXinliang David Li <davidxl@google.com>2016-05-23 16:36:11 +0000
commit1386ead074e8e9028ae73c8106ccc3853d73bcf6 (patch)
tree382b388a4d11b65a7f610c0f508b3e35fd665688 /test
parent018cdc89a0cdaf3ad7a24cd99d5f3a047cee0108 (diff)
[profile] show more statistics
Add value profile statistics with the 'show' command. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@270450 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/tools/llvm-profdata/value-prof.proftext10
1 files changed, 8 insertions, 2 deletions
diff --git a/test/tools/llvm-profdata/value-prof.proftext b/test/tools/llvm-profdata/value-prof.proftext
index a8f6e8641c6..75a74566449 100644
--- a/test/tools/llvm-profdata/value-prof.proftext
+++ b/test/tools/llvm-profdata/value-prof.proftext
@@ -1,7 +1,7 @@
-# RUN: llvm-profdata show -ic-targets -all-functions %s | FileCheck %s --check-prefix=ICTXT
+# RUN: llvm-profdata show -ic-targets -all-functions %s | FileCheck %s --check-prefix=ICTXT --check-prefix=ICSUM
# RUN: llvm-profdata show -ic-targets -counts -text -all-functions %s | FileCheck %s --check-prefix=ICTEXT
# RUN: llvm-profdata merge -o %t.profdata %s
-# RUN: llvm-profdata show -ic-targets -all-functions %t.profdata | FileCheck %s --check-prefix=IC
+# RUN: llvm-profdata show -ic-targets -all-functions %t.profdata | FileCheck %s --check-prefix=IC --check-prefix=ICSUM
foo
# Func Hash:
@@ -61,3 +61,9 @@ foo2:20000
#ICTEXT-NEXT: foo2:1000
#ICTEXT-NEXT: 1
#ICTEXT-NEXT: foo2:20000
+#
+
+#ICSUM: Total Number of Indirect Call Sites : 3
+#ICSUM: Total Number of Sites With Values : 2
+#ICSUM: Total Number of Profiled Values : 3
+