1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-04-18 09:45:55 +01:00

Hadrons: VM memory profiling fix

This commit is contained in:
Antonin Portelli 2018-03-01 17:28:38 +00:00
parent e418b044f7
commit 5b937e3644

View File

@ -423,13 +423,19 @@ void VirtualMachine::memoryProfile(const unsigned int address)
{ {
cleanEnvironment(); cleanEnvironment();
for (auto &in: m->getInput()) for (auto &in: m->getInput())
{
if (!env().hasCreatedObject(in))
{ {
memoryProfile(env().getObjectModule(in)); memoryProfile(env().getObjectModule(in));
} }
}
for (auto &ref: m->getReference()) for (auto &ref: m->getReference())
{
if (!env().hasCreatedObject(ref))
{ {
memoryProfile(env().getObjectModule(ref)); memoryProfile(env().getObjectModule(ref));
} }
}
m->setup(); m->setup();
updateProfile(address); updateProfile(address);
} }