aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/clang14-rt/lib/memprof/memprof_rawprofile.h
blob: 575104e7e34ebe0ca41a3ac634f613178ba25609 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#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_