Examples of heapSnapshot()


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

      {
         jvmti.forceGC();
         Class clazz = jvmti.getClassByName(className);
         if (clazz!=null)
         {
            jvmti.heapSnapshot("snapshot", "mem");
            clazz=null;
           
            String report =jvmti.exploreClassReferences(className, 10, true, false, false, false, false);
           
            System.out.println(report);
View Full Code Here

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

        //File tmpFile = File.createTempFile("profiler","");
        File tmpFile = new File("tst","");
       
        System.out.println("Generating data to " + tmpFile.getAbsolutePath());
       
        jvmti.heapSnapshot(tmpFile.getAbsolutePath(), "log");
        holder.print();
        holder2.print();
       
        MemorySnapshotEngine engine = new MemorySnapshotEngine();
        engine.processFiles(tmpFile.getAbsolutePath(),"log");
View Full Code Here

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

         jvmti.forceReleaseOnSoftReferences();
         jvmti.forceGC();
         Class clazz = jvmti.getClassByName(className);
         if (clazz!=null)
         {
            jvmti.heapSnapshot("snapshot", "mem");
            clazz=null;
           
            String report =jvmti.exploreClassReferences(className, 10, true, false, false, false, false);
           
            //System.out.println(report);
View Full Code Here

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

         jvmti.forceReleaseOnSoftReferences();
         jvmti.forceGC();
         Class clazz = jvmti.getClassByName(className);
         if (clazz!=null)
         {
            jvmti.heapSnapshot("snapshot", "mem");
            clazz=null;

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

            //System.out.println(report);
View Full Code Here

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

         jvmti.forceReleaseOnSoftReferences();
         jvmti.forceGC();
         Class clazz = jvmti.getClassByName(className);
         if (clazz!=null)
         {
            jvmti.heapSnapshot("snapshot", "mem");
            clazz=null;
            Object[] objects = jvmti.getAllObjects(className);
            System.out.println("============> Instances of " + className + " " + objects.length);

            //String report =jvmti.exploreClassReferences(className, 15, true, false, false, false, true);
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.