Examples of exploreClassReferences()


Examples of org.jboss.profiler.jvmti.JVMTIInterface.exploreClassReferences()

         if (clazz!=null)
         {
            jvmti.heapSnapshot("snapshot", "mem");
            clazz=null;
           
            String report =jvmti.exploreClassReferences(className, 10, true, false, false, false, false);
           
            System.out.println(report);
            File outputfile = new File(reportHTMLFile);
            FileOutputStream outfile = new FileOutputStream(outputfile);
            PrintStream realoutput = new PrintStream(outfile);
View Full Code Here

Examples of org.jboss.profiler.jvmti.JVMTIInterface.exploreClassReferences()

    A a = new A();
    B b = a.b;
   
    JVMTIInterface jvmti = new JVMTIInterface();
    HashMap map = jvmti.createIndexMatrix();
    jvmti.exploreClassReferences(B.class.getName(),-1,true,true,true,true,false,map);
   
    System.out.println(jvmti.exploreObjectReferences(map,b,1,true));
    /*map=null;
    jvmti.releaseTags();
    System.out.println(jvmti.exploreObjectReferences(B.class.getName(),2,true)); */
 
View Full Code Here

Examples of org.jboss.profiler.jvmti.JVMTIInterface.exploreClassReferences()

         if (clazz!=null)
         {
            jvmti.heapSnapshot("snapshot", "mem");
            clazz=null;
           
            String report =jvmti.exploreClassReferences(className, 10, true, false, false, false, false);
           
            //System.out.println(report);
            File outputfile = new File("./leaks-report.html");
            FileOutputStream outfile = new FileOutputStream(outputfile);
            PrintStream realoutput = new PrintStream(outfile);
View Full Code Here

Examples of org.jboss.profiler.jvmti.JVMTIInterface.exploreClassReferences()

         if (clazz!=null)
         {
            jvmti.heapSnapshot("snapshot", "mem");
            clazz=null;

            String report =jvmti.exploreClassReferences(className, 15, true, false, false, false, true);

            //System.out.println(report);
            String reportDir = System.getProperty("leak.report.dir");
            assertNotNull("You must pass in the directory for the reports as leak.report.dir", reportDir);
            File outputfile = new File(reportDir + "/leak-reoprt-" + className + ".html");
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.