64 fList.push_back(alloc);
69 std::vector<G4AllocatorBase*>::iterator itr=
fList.begin();
74 G4cout <<
"================== Deleting memory pools ==================="
77 for(; itr!=
fList.end();++itr)
79 mem = (*itr)->GetAllocatedSize();
84 (*itr)->ResetStorage();
91 G4cout <<
"Pool ID '" << (*itr)->GetPoolType() <<
"', size : "
92 << std::setprecision(3) << mem/1048576
93 << std::setprecision(6) <<
" MB" <<
G4endl;
95 (*itr)->ResetStorage();
100 G4cout <<
"Number of memory pools allocated: " <<
Size()
101 <<
"; of which, static: " << i <<
G4endl;
102 G4cout <<
"Dynamic pools deleted: " << j
103 <<
" / Total memory freed: " << std::setprecision(2)
104 << tmem/1048576 << std::setprecision(6) <<
" MB" <<
G4endl;
105 G4cout <<
"============================================================"
void Destroy(G4int nStat=0, G4int verboseLevel=0)
static G4AllocatorList * GetAllocatorList()
static G4AllocatorList * GetAllocatorListIfExist()
std::vector< G4AllocatorBase * > fList
G4GLOB_DLL std::ostream G4cout
static G4ThreadLocal G4AllocatorList * fAllocatorList
void Register(G4AllocatorBase *)