15 #ifndef LLVM_PROFILEDATA_INSTRPROFWRITER_H
16 #define LLVM_PROFILEDATA_INSTRPROFWRITER_H
22 #include "llvm/Support/DataTypes.h"
35 uint64_t MaxFunctionCount;
43 uint64_t FunctionHash,
51 std::pair<uint64_t, uint64_t> writeImpl(
raw_ostream &OS);
SmallDenseMap< uint64_t, std::vector< uint64_t >, 1 > CounterData
Writer for instrumentation based profile data.
StringMap - This is an unconventional map that is specialized for handling keys that are "strings"...
A raw_ostream that writes to a file descriptor.
std::error_code addFunctionCounts(StringRef FunctionName, uint64_t FunctionHash, ArrayRef< uint64_t > Counters)
Add function counts for the given function.
void write(raw_fd_ostream &OS)
Write the profile to OS.
This class implements an extremely fast bulk output stream that can only output to a stream...
StringRef - Represent a constant reference to a string, i.e.
std::unique_ptr< MemoryBuffer > writeBuffer()
Write the profile, returning the raw data. For testing.