Examples of produceInventory()


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

 
  public void testProduceInventoryMinimal() throws Exception
  {
    JVMTIInterface jvmti = new JVMTIInterface(); // The JVMTIWrapper used to produce inventories
   
    Map map = jvmti.produceInventory();
    Map map2 = jvmti.produceInventory();
    assertTrue( jvmti.compareInventories(System.out,map,map2,null,null,null));
   
  }
 
View Full Code Here

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

  public void testProduceInventoryMinimal() throws Exception
  {
    JVMTIInterface jvmti = new JVMTIInterface(); // The JVMTIWrapper used to produce inventories
   
    Map map = jvmti.produceInventory();
    Map map2 = jvmti.produceInventory();
    assertTrue( jvmti.compareInventories(System.out,map,map2,null,null,null));
   
  }
 
  public void testProduceInventory() throws Exception
View Full Code Here

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

     
    }
   
    JVMTIInterface jvmti = new JVMTIInterface(); // The JVMTIWrapper used to produce inventories
   
    Map map = jvmti.produceInventory();
    Map map2 = jvmti.produceInventory();
    jvmti.compareInventories(System.out,map,map2,null,null,null);
    System.out.println("size=" + map.size());
    map=null;
    map2=null;
View Full Code Here

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

    }
   
    JVMTIInterface jvmti = new JVMTIInterface(); // The JVMTIWrapper used to produce inventories
   
    Map map = jvmti.produceInventory();
    Map map2 = jvmti.produceInventory();
    jvmti.compareInventories(System.out,map,map2,null,null,null);
    System.out.println("size=" + map.size());
    map=null;
    map2=null;
View Full Code Here

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

    map=null;
    map2=null;

    TestClass keepr = new TestClass(); // at least one instance, so point2 won't be null
   
    Map firstMap = jvmti.produceInventory(); // The inventory of classes, this is HashMap<Class,InventoryDataPoint>

    TestClass [] tests = new TestClass[1000];
    for (int i=0;i<1000;i++)
    {
      tests[i] = new TestClass(); // allocating 1000 objects
View Full Code Here

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

    for (int i=0;i<1000;i++)
    {
      tests[i] = new TestClass(); // allocating 1000 objects
    }
    
    Map secondMap = jvmti.produceInventory(); // the second inventory
   
    InventoryDataPoint point1 = (InventoryDataPoint)secondMap.get(TestClass.class);
    InventoryDataPoint point2 = (InventoryDataPoint)firstMap.get(TestClass.class);
   
    assertEquals(1000,point1.getInstances()-point2.getInstances()); // you can manually compare it
View Full Code Here

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

      MessageConsumer cons = sess.createConsumer(queue);

      produceMessages(sess, prod, 100, cons);
     
      JVMTIInterface jvmti = new JVMTIInterface();
      Map inventory1=jvmti.produceInventory();
      log.info("Producing first snapshot");
      produceMessages(sess, prod, NUM_MESSAGES, cons);
      log.info("Producing second snapshot");
      jvmti.forceReleaseOnSoftReferences();
      jvmti.forceGC();
View Full Code Here

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

      log.info("Producing first snapshot");
      produceMessages(sess, prod, NUM_MESSAGES, cons);
      log.info("Producing second snapshot");
      jvmti.forceReleaseOnSoftReferences();
      jvmti.forceGC();
      Map inventory2 = jvmti.produceInventory();
     
      log.info("inventory1.size=" + inventory1.size());
      log.info("inventory2.size=" + inventory2.size());
     
      assertTrue("Test produced unexpected objects",jvmti.compareInventories(System.out, inventory1,inventory2,null, null, new InventoryDataPoint[] {new InventoryDataPoint(Object.class,10)}));
View Full Code Here

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

      MessageConsumer cons2 = sess.createConsumer(queue,"target='2'");

      produceMessages(sess, prod, 30, cons1,cons2,payLoad);
     
      JVMTIInterface jvmti = new JVMTIInterface();
      Map inventory1=jvmti.produceInventory();
      log.info("Producing first snapshot");
      produceMessages(sess, prod, 10, cons1,cons2,payLoad);
      produceMessages(sess, prod, 10, cons1,cons2,payLoad);
      produceMessages(sess, prod, 10, cons1,cons2,payLoad);
      produceMessages(sess, prod, 10, cons1,cons2,payLoad);
View Full Code Here

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

      produceMessages(sess, prod, 10, cons1,cons2,payLoad);
      produceMessages(sess, prod, 10, cons1,cons2,payLoad);
      produceMessages(sess, prod, 10, cons1,cons2,payLoad);
      produceMessages(sess, prod, 10, cons1,cons2,payLoad);
      log.info("Producing second snapshot");
      Map inventory2 = jvmti.produceInventory();
     
      log.info("inventory1.size=" + inventory1.size());
      log.info("inventory2.size=" + inventory2.size());
     
      assertTrue("Test produced unexpected objects",jvmti.compareInventories(System.out, inventory1,inventory2,null, null, new InventoryDataPoint[] {new InventoryDataPoint(Object.class,10)}));
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.