xref: /freebsd/contrib/llvm-project/compiler-rt/lib/memprof/memprof_rawprofile.h (revision 7fdf597e96a02165cfe22ff357b857d5fa15ed8a)
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