1
0
mirror of https://github.com/paboyle/Grid.git synced 2026-01-04 03:29:34 +00:00

Hadrons: first full implementation of the module memory profiler

This commit is contained in:
2017-12-12 19:32:58 +00:00
parent f3a77f4b7f
commit 259d504ef0
8 changed files with 166 additions and 13 deletions

View File

@@ -369,6 +369,16 @@ void Environment::freeAll(void)
}
}
void Environment::protectObjects(const bool protect)
{
protect_ = protect;
}
bool Environment::objectsProtected(void) const
{
return protect_;
}
// print environment content ///////////////////////////////////////////////////
void Environment::printContent(void) const
{
@@ -376,6 +386,7 @@ void Environment::printContent(void) const
for (unsigned int i = 0; i < object_.size(); ++i)
{
LOG(Debug) << std::setw(4) << i << ": "
<< getObjectName(i) << std::endl;
<< getObjectName(i) << " ("
<< sizeString(getObjectSize(i)) << ")" << std::endl;
}
}