Files
clang-p2996/compiler-rt/lib/memprof/memprof_rawprofile.h
Snehasish Kumar 7cca33b40f [memprof] Extend llvm-profdata to display MemProf profile summaries.
This commit adds initial support to llvm-profdata to read and print
summaries of raw memprof profiles.
Summary of changes:
* Refactor shared defs to MemProfData.inc
* Extend show_main to display memprof profile summaries.
* Add a simple raw memprof profile reader.
* Add a couple of tests to tools/llvm-profdata.

Differential Revision: https://reviews.llvm.org/D114286
2021-11-30 10:45:26 -08:00

15 lines
492 B
C++

#ifndef MEMPROF_RAWPROFILE_H_
#define MEMPROF_RAWPROFILE_H_
#include "memprof_mibmap.h"
#include "sanitizer_common/sanitizer_procmaps.h"
namespace __memprof {
// Serialize the in-memory representation of the memprof profile to the raw
// binary format. The format itself is documented memprof_rawprofile.cpp.
u64 SerializeToRawProfile(MIBMapTy &BlockCache, MemoryMappingLayoutBase &Layout,
char *&Buffer);
} // namespace __memprof
#endif // MEMPROF_RAWPROFILE_H_