LLVM 22.0.0git
MemProfCommon.cpp File Reference

Go to the source code of this file.

Functions

LLVM_ABI 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"))
LLVM_ABI 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"))
LLVM_ABI 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"))
LLVM_ABI cl::opt< boolMemProfUseHotHints ("memprof-use-hot-hints", cl::init(false), cl::Hidden, cl::desc("Enable use of hot hints (only supported for " "unambigously hot allocations)"))

Function Documentation

◆ MemProfAveLifetimeColdThreshold()

LLVM_ABI 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")  )

◆ MemProfLifetimeAccessDensityColdThreshold()

LLVM_ABI 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")  )

◆ MemProfMinAveLifetimeAccessDensityHotThreshold()

LLVM_ABI 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")  )

◆ MemProfUseHotHints()

LLVM_ABI cl::opt< bool > MemProfUseHotHints ( "memprof-use-hot-hints" ,
cl::init(false) ,
cl::Hidden ,
cl::desc("Enable use of hot hints (only supported for " "unambigously hot allocations)")  )