xref: /freebsd/contrib/llvm-project/compiler-rt/lib/memprof/memprof_rawprofile.h (revision 1719886f6d08408b834d270c59ffcfd821c8f63a)
1 #ifndef MEMPROF_RAWPROFILE_H_
2 #define MEMPROF_RAWPROFILE_H_
3 
4 #include "memprof_mibmap.h"
5 #include "sanitizer_common/sanitizer_array_ref.h"
6 #include "sanitizer_common/sanitizer_common.h"
7 
8 namespace __memprof {
9 // Serialize the in-memory representation of the memprof profile to the raw
10 // binary format. The format itself is documented memprof_rawprofile.cpp.
11 u64 SerializeToRawProfile(MIBMapTy &BlockCache, ArrayRef<LoadedModule> Modules,
12                           char *&Buffer);
13 } // namespace __memprof
14 
15 #endif // MEMPROF_RAWPROFILE_H_
16