LLVM 22.0.0git
|
#include "llvm/ProfileData/MemProfSummary.h"
Public Member Functions | |
MemProfSummary (uint64_t NumContexts, uint64_t NumColdContexts, uint64_t NumHotContexts, uint64_t MaxColdTotalSize, uint64_t MaxWarmTotalSize, uint64_t MaxHotTotalSize) | |
uint64_t | getNumContexts () const |
uint64_t | getNumColdContexts () const |
uint64_t | getNumHotContexts () const |
uint64_t | getMaxColdTotalSize () const |
uint64_t | getMaxWarmTotalSize () const |
uint64_t | getMaxHotTotalSize () const |
LLVM_ABI void | printSummaryYaml (raw_ostream &OS) const |
LLVM_ABI void | write (ProfOStream &OS) const |
Write to indexed MemProf profile. | |
Static Public Member Functions | |
static constexpr unsigned | getNumSummaryFields () |
static LLVM_ABI std::unique_ptr< MemProfSummary > | deserialize (const unsigned char *&) |
Read from indexed MemProf profile. | |
Definition at line 22 of file MemProfSummary.h.
|
inline |
Definition at line 36 of file MemProfSummary.h.
|
static |
Read from indexed MemProf profile.
Definition at line 47 of file MemProfSummary.cpp.
References assert(), getNumSummaryFields(), and Ptr.
|
inline |
Definition at line 47 of file MemProfSummary.h.
|
inline |
Definition at line 49 of file MemProfSummary.h.
|
inline |
Definition at line 48 of file MemProfSummary.h.
|
inline |
Definition at line 45 of file MemProfSummary.h.
|
inline |
Definition at line 44 of file MemProfSummary.h.
|
inline |
Definition at line 46 of file MemProfSummary.h.
|
inlinestaticconstexpr |
Definition at line 43 of file MemProfSummary.h.
Referenced by deserialize(), and write().
void MemProfSummary::printSummaryYaml | ( | raw_ostream & | OS | ) | const |
Definition at line 18 of file MemProfSummary.cpp.
References OS.
void MemProfSummary::write | ( | ProfOStream & | OS | ) | const |
Write to indexed MemProf profile.
Definition at line 30 of file MemProfSummary.cpp.
References assert(), getNumSummaryFields(), OS, llvm::raw_ostream::tell(), and llvm::raw_ostream::write().