Examples of MemorySnapshotController


Examples of org.jboss.profiler.memoryprofiler.engine.MemorySnapshotController

        try
        {
            request.getSession().removeAttribute("snapshot");
            MemorySnapshotEngine snapshot = new MemorySnapshotEngine();
            snapshot.processFiles(basicFile,extension);
            MemorySnapshotController controller = new MemorySnapshotController(snapshot);
            request.getSession().setAttribute("snapshot",controller);
            response.sendRedirect("./memory/roots.jsp");
        }
        catch (Exception e)
        {
View Full Code Here

Examples of org.jboss.profiler.memoryprofiler.engine.MemorySnapshotController

        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);
            }
           
        }
       
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.