memprof_rawprofile.h 539 B

123456789101112131415
  1. #ifndef MEMPROF_RAWPROFILE_H_
  2. #define MEMPROF_RAWPROFILE_H_
  3. #include "memprof_mibmap.h"
  4. #include "sanitizer_common/sanitizer_array_ref.h"
  5. #include "sanitizer_common/sanitizer_common.h"
  6. namespace __memprof {
  7. // Serialize the in-memory representation of the memprof profile to the raw
  8. // binary format. The format itself is documented memprof_rawprofile.cpp.
  9. u64 SerializeToRawProfile(MIBMapTy &BlockCache, ArrayRef<LoadedModule> Modules,
  10. char *&Buffer);
  11. } // namespace __memprof
  12. #endif // MEMPROF_RAWPROFILE_H_