Home | History | Annotate | Download | only in llvm-profdata
      1 REGENERATE: You need a checkout of clang with compiler-rt to generate the
      2 REGENERATE: binary file here.  These shell commands can be used to regenerate
      3 REGENERATE: it.
      4 REGENERATE:
      5 REGENERATE: $ SRC=path/to/llvm
      6 REGENERATE: $ CFE=$SRC/tools/clang
      7 REGENERATE: $ TESTDIR=$SRC/test/tools/llvm-profdata
      8 REGENERATE: $ CFE_TESTDIR=$CFE/test/Profile
      9 REGENERATE: $ clang -o a.out -fprofile-instr-generate $CFE_TESTDIR/c-general.c
     10 REGENERATE: $ LLVM_PROFILE_FILE=$TESTDIR/Inputs/c-general.profraw ./a.out
     11 
     12 RUN: llvm-profdata show %p/Inputs/c-general.profraw -o - | FileCheck %s -check-prefix=CHECK
     13 RUN: llvm-profdata show %p/Inputs/c-general.profraw -o - --function=switches | FileCheck %s -check-prefix=SWITCHES -check-prefix=CHECK
     14 
     15 SWITCHES-LABEL: Counters:
     16 SWITCHES-NEXT:   switches:
     17 SWITCHES-NEXT:     Hash: 0x2618e4f23f2e8daa
     18 SWITCHES-NEXT:     Counters: 19
     19 SWITCHES-NEXT:     Function count: 1
     20 SWITCHES-LABEL: Functions shown: 1
     21 
     22 CHECK-LABEL: Total functions: 12
     23 CHECK-NEXT: Maximum function count: 1
     24 CHECK-NEXT: Maximum internal block count: 100
     25