holder2.print();
MemorySnapshotEngine engine = new MemorySnapshotEngine();
engine.processFiles(tmpFile.getAbsolutePath(),"log");
MemorySnapshotController controller = new MemorySnapshotController(engine);
Collection coll = controller.filterRoots(false);
Iterator iter = coll.iterator();
int i=0;
while (iter.hasNext())
{
MemoryClass clazz = (MemoryClass)iter.next();
if ((i++)==1)
{
Collection collResult = controller.summarizeReferenceByPath(true,new String[]{"C" + clazz.getId()});
//assertTrue(collResult.size()>0);
}
if (clazz.getClassLoaderId()!=0)
{
Collection collClassLoader = controller.solveLoadedClass(clazz.getClassLoaderId(),false);
}
}
}