MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / DeviceMemoryStatCurrentValue

Function DeviceMemoryStatCurrentValue

paddle/phi/core/memory/stats.cc:84–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82};
83
84int64_t DeviceMemoryStatCurrentValue(const std::string& stat_type, int dev_id) {
85 return StatRegistry::GetInstance()->GetCurrentValue("Device" + stat_type,
86 dev_id);
87}
88
89int64_t DeviceMemoryStatPeakValue(const std::string& stat_type, int dev_id) {
90 return StatRegistry::GetInstance()->GetPeakValue("Device" + stat_type,

Callers 13

LogDeviceMemoryStatsFunction · 0.70
AllocateImplMethod · 0.50
RecordAllocMethod · 0.50
RecordFreeMethod · 0.50
PrintMemProfilerFunction · 0.50
MemoryDebugStringFunction · 0.50
CheckAndDoCompactFunction · 0.50
GetAllocatedMemoryFunction · 0.50
DisplayMemoryInfoFunction · 0.50
TESTFunction · 0.50
TESTFunction · 0.50

Calls 2

GetInstanceFunction · 0.85
GetCurrentValueMethod · 0.45

Tested by 3

TESTFunction · 0.40
TESTFunction · 0.40
TEST_FFunction · 0.40