#include <G4AllocatorList.hh>
Definition at line 48 of file G4AllocatorList.hh.
G4AllocatorList::~G4AllocatorList |
( |
| ) |
|
void G4AllocatorList::Destroy |
( |
G4int |
nStat = 0 , |
|
|
G4int |
verboseLevel = 0 |
|
) |
| |
Definition at line 67 of file G4AllocatorList.cc.
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 <<
"============================================================"
G4GLOB_DLL std::ostream G4cout
G4int G4AllocatorList::Size |
( |
| ) |
const |
The documentation for this class was generated from the following files: