Package net.sf.joafip.meminspector.service.inspect

Examples of net.sf.joafip.meminspector.service.inspect.MemInspector.inspect()


      map.put(count, random.nextInt());
    }
    for (int count = 5000; count < 10000; count++) {
      map.remove(count);
    }
    memInspector.inspect(map, false);
    for (int count = 10000; count < 15000; count++) {
      map.put(count, random.nextInt());
    }
    for (int count = 10000; count < 15000; count++) {
      map.remove(count);
View Full Code Here


      map.put(count, random.nextInt());
    }
    for (int count = 10000; count < 15000; count++) {
      map.remove(count);
    }
    memInspector.inspect(map, true);
    if (memInspector.added()) {
      final String fileName = "runtime/mem.bin";
      memInspector.serialize(new File(fileName));
      ShowObjectTree.show(fileName);
    }
View Full Code Here

    checkTree(set.getTree());
    for (int count = 500; count < 1000; count++) {
      set.remove(count);
    }
    checkTree(set.getTree());
    memInspector.inspect(set, false);
    for (int count = 1000; count < 1500; count++) {
      set.add(count);
    }
    checkTree(set.getTree());
    for (int count = 1000; count < 1500; count++) {
View Full Code Here

    checkTree(set.getTree());
    for (int count = 1000; count < 1500; count++) {
      set.remove(count);
    }
    checkTree(set.getTree());
    memInspector.inspect(set, true);
    if (memInspector.added()) {
      final String fileName = "runtime/mem.bin";
      memInspector.serialize(new File(fileName));
      ShowObjectTree.show(fileName);
    }
View Full Code Here

      set.add(count);
    }
    for (int count = 50000; count < 100000; count++) {
      set.remove(count);
    }
    memInspector.inspect(set, false);
    for (int count = 100000; count < 150000; count++) {
      set.add(count);
    }
    for (int count = 100000; count < 150000; count++) {
      set.remove(count);
View Full Code Here

      set.add(count);
    }
    for (int count = 100000; count < 150000; count++) {
      set.remove(count);
    }
    memInspector.inspect(set, true);
    if (memInspector.added()) {
      final String fileName = "runtime/mem.bin";
      memInspector.serialize(new File(fileName));
      ShowObjectTree.show(fileName);
    }
View Full Code Here

    final Set<Integer> set = new HashSet<Integer>();
    for (int count = 0; count < 10000; count++) {
      set.add(count);
    }
    set.clear();
    memInspector.inspect(set, false);
    for (int count = 0; count < 20000; count++) {
      set.add(count);
    }
    set.clear();
    memInspector.inspect(set, true);
View Full Code Here

    memInspector.inspect(set, false);
    for (int count = 0; count < 20000; count++) {
      set.add(count);
    }
    set.clear();
    memInspector.inspect(set, true);
    if (memInspector.added()) {
      final String fileName = "runtime/mem.bin";
      memInspector.serialize(new File(fileName));
      ShowObjectTree.show(fileName);
    }
View Full Code Here

    bob1.setBob2(new Bob2());
    /*
     * After doing initialization and some object storing, get the object in
     * memory in initial object map.
     */
    memInspector.inspect(this, false/* markNew */);
    assertFalse("expect no object added", memInspector.added());
    List<NodeForObject> list = memInspector.addedList();
    assertTrue("must not have added object", list.isEmpty());

    /* add an object */
 
View Full Code Here

    final Bob3 bob3 = new Bob3();
    bob1.setBob3(bob3);
    /*
     * Get the object in memory and log those added to initially in memory
     */
    memInspector.inspect(this, true/* markNew */);
    /*
     * is there object added
     */
    assertTrue("object added must be found", memInspector.added());

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.