1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-04-09 13:40:46 +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

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