LLVM 20.0.0git
Macros | Functions | Variables
MemoryProfileInfo.cpp File Reference
#include "llvm/Analysis/MemoryProfileInfo.h"
#include "llvm/Support/CommandLine.h"

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "memory-profile-info"
 

Functions

static void addAllocTypeAttribute (LLVMContext &Ctx, CallBase *CI, AllocationType AllocType)
 
static MDNodecreateMIBNode (LLVMContext &Ctx, std::vector< uint64_t > &MIBCallStack, AllocationType AllocType, uint64_t TotalSize)
 

Variables

cl::opt< float > MemProfLifetimeAccessDensityColdThreshold ("memprof-lifetime-access-density-cold-threshold", cl::init(0.05), cl::Hidden, cl::desc("The threshold the lifetime access density (accesses per byte per " "lifetime sec) must be under to consider an allocation cold"))
 
cl::opt< unsignedMemProfAveLifetimeColdThreshold ("memprof-ave-lifetime-cold-threshold", cl::init(200), cl::Hidden, cl::desc("The average lifetime (s) for an allocation to be considered " "cold"))
 
cl::opt< unsignedMemProfMinAveLifetimeAccessDensityHotThreshold ("memprof-min-ave-lifetime-access-density-hot-threshold", cl::init(1000), cl::Hidden, cl::desc("The minimum TotalLifetimeAccessDensity / AllocCount for an " "allocation to be considered hot"))
 
cl::opt< boolMemProfReportHintedSizes ("memprof-report-hinted-sizes", cl::init(false), cl::Hidden, cl::desc("Report total allocation sizes of hinted allocations"))
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "memory-profile-info"

Definition at line 19 of file MemoryProfileInfo.cpp.

Function Documentation

◆ addAllocTypeAttribute()

static void addAllocTypeAttribute ( LLVMContext Ctx,
CallBase CI,
AllocationType  AllocType 
)
static

◆ createMIBNode()

static MDNode * createMIBNode ( LLVMContext Ctx,
std::vector< uint64_t > &  MIBCallStack,
AllocationType  AllocType,
uint64_t  TotalSize 
)
static

Variable Documentation

◆ MemProfAveLifetimeColdThreshold

cl::opt< unsigned > MemProfAveLifetimeColdThreshold("memprof-ave-lifetime-cold-threshold", cl::init(200), cl::Hidden, cl::desc("The average lifetime (s) for an allocation to be considered " "cold")) ( "memprof-ave-lifetime-cold-threshold"  ,
cl::init(200)  ,
cl::Hidden  ,
cl::desc("The average lifetime (s) for an allocation to be considered " "cold")   
)

◆ MemProfLifetimeAccessDensityColdThreshold

cl::opt< float > MemProfLifetimeAccessDensityColdThreshold("memprof-lifetime-access-density-cold-threshold", cl::init(0.05), cl::Hidden, cl::desc("The threshold the lifetime access density (accesses per byte per " "lifetime sec) must be under to consider an allocation cold")) ( "memprof-lifetime-access-density-cold-threshold"  ,
cl::init(0.05)  ,
cl::Hidden  ,
cl::desc("The threshold the lifetime access density (accesses per byte per " "lifetime sec) must be under to consider an allocation cold")   
)

◆ MemProfMinAveLifetimeAccessDensityHotThreshold

cl::opt< unsigned > MemProfMinAveLifetimeAccessDensityHotThreshold("memprof-min-ave-lifetime-access-density-hot-threshold", cl::init(1000), cl::Hidden, cl::desc("The minimum TotalLifetimeAccessDensity / AllocCount for an " "allocation to be considered hot")) ( "memprof-min-ave-lifetime-access-density-hot-threshold"  ,
cl::init(1000)  ,
cl::Hidden  ,
cl::desc("The minimum TotalLifetimeAccessDensity / AllocCount for an " "allocation to be considered hot")   
)

◆ MemProfReportHintedSizes

cl::opt< bool > MemProfReportHintedSizes("memprof-report-hinted-sizes", cl::init(false), cl::Hidden, cl::desc("Report total allocation sizes of hinted allocations")) ( "memprof-report-hinted-sizes"  ,
cl::init(false)  ,
cl::Hidden  ,
cl::desc("Report total allocation sizes of hinted allocations")   
)