llvm-mirror/lib/ProfileData
Diego Novillo 87a89a64fa Handle inline stacks in gcov-encoded sample profiles.
This patch adds support for reading sample profiles with inline stacks.
Inline stacks in a profile are generated when the sampled binary has
samples in inlined functions.

For instance, if main() calls foo() and foo() calls bar(), and bar() is
inlined into foo() and foo() inlined into main(), the profile may look
something like:

main total:364084 head:0
  [ ... ]
  2.3: _Z3fool total:243786
    1: 60149
    1.2: 38568
    1.4: 46511
    1.7: _Z3bari total:98558
      1.1: 52672
      1.2: 45886

At line 2, discriminator 3, main() calls foo(). In turn, foo() calls
bar() at line 1, discriminator 7.

In the textual format, this stacking of inline calls is represented
with indentation.

With this change, LLVM can now read sample profile files generated by
the create_gcov tool from https://github.com/google/autofdo.

llvm-svn: 249644
2015-10-08 00:39:11 +00:00
..
CMakeLists.txt modules: Add explicit dependency on intrinsics_gen 2015-06-16 00:44:12 +00:00
CoverageMapping.cpp Revert r240137 (Fixed/added namespace ending comments using clang-tidy. NFC) 2015-06-23 09:49:53 +00:00
CoverageMappingReader.cpp Revert r240137 (Fixed/added namespace ending comments using clang-tidy. NFC) 2015-06-23 09:49:53 +00:00
CoverageMappingWriter.cpp Revert r240137 (Fixed/added namespace ending comments using clang-tidy. NFC) 2015-06-23 09:49:53 +00:00
InstrProf.cpp InstrProf: Support for value profiling in the indexed profile format 2015-09-29 22:13:58 +00:00
InstrProfIndexed.h InstrProf: Support for value profiling in the indexed profile format 2015-09-29 22:13:58 +00:00
InstrProfReader.cpp InstrProf: Don't call std::unique twice here 2015-09-30 02:02:08 +00:00
InstrProfWriter.cpp InstrProf: Support for value profiling in the indexed profile format 2015-09-29 22:13:58 +00:00
LLVMBuild.txt
Makefile
SampleProf.cpp GCC AutoFDO profile reader - Initial support. 2015-09-17 00:17:24 +00:00
SampleProfReader.cpp Handle inline stacks in gcov-encoded sample profiles. 2015-10-08 00:39:11 +00:00
SampleProfWriter.cpp Handle inline stacks in gcov-encoded sample profiles. 2015-10-08 00:39:11 +00:00