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:
parent
e418b044f7
commit
5b937e3644
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user