llvm-project/llvm/lib/ProfileData
Diego Novillo c572e92c76 Add profile writing capabilities for sampling profiles.
Summary:
This patch finishes up support for handling sampling profiles in both
text and binary formats. The new binary format uses uleb128 encoding to
represent numeric values. This makes profiles files about 25% smaller.

The profile writer class can write profiles in the existing text and the
new binary format. In subsequent patches, I will add the capability to
read (and perhaps write) profiles in the gcov format used by GCC.

Additionally, I will be adding support in llvm-profdata to manipulate
sampling profiles.

There was a bit of refactoring needed to separate some code that was in
the reader files, but is actually common to both the reader and writer.

The new test checks that reading the same profile encoded as text or
raw, produces the same results.

Reviewers: bogner, dexonsmith

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D6000

llvm-svn: 220915
2014-10-30 18:00:06 +00:00
..
CMakeLists.txt Add profile writing capabilities for sampling profiles. 2014-10-30 18:00:06 +00:00
CoverageMapping.cpp Eliminate some deep std::vector copies. NFC. 2014-10-03 18:33:16 +00:00
CoverageMappingReader.cpp Reduce double set lookups. NFC. 2014-10-10 15:32:50 +00:00
CoverageMappingWriter.cpp InstrProf: Simplify counting a file's regions when writing coverage (NFC) 2014-10-02 00:31:00 +00:00
InstrProf.cpp Converting InstrProf's error_category to a ManagedStatic to avoid static constructors and destructors. 2014-09-19 23:19:24 +00:00
InstrProfIndexed.h Canonicalize header guards into a common format. 2014-08-13 16:26:38 +00:00
InstrProfReader.cpp llvm-profdata: Avoid undefined behaviour when reading raw profiles 2014-09-12 21:22:55 +00:00
InstrProfWriter.cpp Eliminate some deep std::vector copies. NFC. 2014-10-03 18:33:16 +00:00
LLVMBuild.txt LLVMProfileData: Update LLVMBuild.txt corresponding to r217437. 2014-09-09 15:00:13 +00:00
Makefile
SampleProf.cpp Add profile writing capabilities for sampling profiles. 2014-10-30 18:00:06 +00:00
SampleProfReader.cpp Add profile writing capabilities for sampling profiles. 2014-10-30 18:00:06 +00:00
SampleProfWriter.cpp Add profile writing capabilities for sampling profiles. 2014-10-30 18:00:06 +00:00