63 fList.push_back(alloc);
68 std::vector<G4AllocatorBase*>::iterator itr=
fList.begin();
73 G4cout <<
"================== Deleting memory pools ==================="
76 for(; itr!=
fList.end();++itr)
78 mem = (*itr)->GetAllocatedSize();
83 (*itr)->ResetStorage();
90 G4cout <<
"Pool ID '" << (*itr)->GetPoolType() <<
"', size : "
91 << std::setprecision(3) << mem/1048576
92 << std::setprecision(6) <<
" MB" <<
G4endl;
94 (*itr)->ResetStorage();
99 G4cout <<
"Number of memory pools allocated: " <<
Size()
100 <<
"; of which, static: " << i <<
G4endl;
101 G4cout <<
"Dynamic pools deleted: " << j
102 <<
" / Total memory freed: " << std::setprecision(2)
103 << tmem/1048576 << std::setprecision(6) <<
" MB" <<
G4endl;
104 G4cout <<
"============================================================"