MCPcopy Create free account
hub / github.com/beefytech/Beef / ReportMemory

Method ReportMemory

IDEHelper/DbgModule.cpp:7434–7452  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7432}
7433
7434void DbgModule::ReportMemory(MemReporter* memReporter)
7435{
7436 //memReporter->Add("BumpAlloc_Used", mAlloc.GetAllocSize());
7437 //memReporter->Add("BumpAlloc_Unused", mAlloc.GetTotalAllocSize() - mAlloc.GetAllocSize());
7438
7439 memReporter->AddBumpAlloc("BumpAlloc", mAlloc);
7440 memReporter->AddVec(mTypes);
7441 memReporter->AddVec(mSubprograms);
7442 //memReporter->Add("TypeMap", mTypeMap.mAlloc.GetTotalAllocSize() + sizeof(StrHashMap<DbgType*>));
7443 memReporter->AddHashSet("TypeMap", mTypeMap.mMap);
7444 memReporter->Add("SymbolNameMap", mSymbolNameMap.mAlloc.GetTotalAllocSize() + sizeof(StrHashMap<DbgType*>));
7445
7446 if (mOrigImageData != NULL)
7447 {
7448 memReporter->BeginSection("OrigImageData");
7449 mOrigImageData->ReportMemory(memReporter);
7450 memReporter->EndSection();
7451 }
7452}
7453
7454DbgType* DbgModule::GetPointerType(DbgType* innerType)
7455{

Callers

nothing calls this directly

Calls 4

BeginSectionMethod · 0.80
AddMethod · 0.45
GetTotalAllocSizeMethod · 0.45
EndSectionMethod · 0.45

Tested by

no test coverage detected