blob: 01435303d445954fce848c835297eca74a0cbf7c [file] [log] [blame]
Duncan P. N. Exon Smithaf777bb2014-03-21 21:20:35 +00001REGENERATE: You need a checkout of clang with compiler-rt to generate the
2REGENERATE: binary file here. These shell commands can be used to regenerate
3REGENERATE: it.
4REGENERATE:
5REGENERATE: $ SRC=path/to/llvm
6REGENERATE: $ CFE=$SRC/tools/clang
7REGENERATE: $ TESTDIR=$SRC/test/tools/llvm-profdata
8REGENERATE: $ CFE_TESTDIR=$CFE/test/Profile
9REGENERATE: $ clang -o a.out -fprofile-instr-generate $CFE_TESTDIR/test/Profile/c-general.c
Justin Bogneraf3001e2014-07-30 23:02:01 +000010REGENERATE: $ LLVM_PROFILE_FILE=$TESTDIR/Inputs/c-general.profraw ./a.out
Duncan P. N. Exon Smithaf777bb2014-03-21 21:20:35 +000011
Justin Bogneraf3001e2014-07-30 23:02:01 +000012RUN: llvm-profdata show %p/Inputs/c-general.profraw -o - | FileCheck %s -check-prefix=CHECK
13RUN: llvm-profdata show %p/Inputs/c-general.profraw -o - --function=switches | FileCheck %s -check-prefix=SWITCHES -check-prefix=CHECK
Duncan P. N. Exon Smithaf777bb2014-03-21 21:20:35 +000014
15SWITCHES-LABEL: Counters:
16SWITCHES-NEXT: switches:
17SWITCHES-NEXT: Hash: 0x0000000000000013
18SWITCHES-NEXT: Counters: 19
19SWITCHES-NEXT: Function count: 1
20SWITCHES-LABEL: Functions shown: 1
21
22CHECK-LABEL: Total functions: 11
23CHECK-NEXT: Maximum function count: 1
24CHECK-NEXT: Maximum internal block count: 100