1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-10 07:55:35 +00:00

Hadrons: garbage collector debug output

This commit is contained in:
Antonin Portelli 2018-03-09 21:56:01 +00:00
parent 70ec2faa98
commit e485a07133

View File

@ -632,6 +632,15 @@ void VirtualMachine::executeProgram(const Program &p) const
// build garbage collection schedule
LOG(Debug) << "Building garbage collection schedule..." << std::endl;
freeProg = makeGarbageSchedule(p);
for (unsigned int i = 0; i < freeProg.size(); ++i)
{
LOG(Debug) << std::setw(4) << i + 1 << ": [";
for (auto &a: freeProg[i])
{
std::cout << env().getObjectName(a) << " ";
}
std::cout << "]" << std::endl;
}
// program execution
LOG(Debug) << "Executing program..." << std::endl;