Package javax.tools.diagnostics.runtime.java

Examples of javax.tools.diagnostics.runtime.java.JavaHeap


  }
 
  private void updateInstanceCount(JavaRuntime jr, Map javaClasses) {
    Iterator itHeap = jr.getHeaps().iterator();
    while (itHeap.hasNext()) {
      JavaHeap jh = (JavaHeap)itHeap.next();
      Iterator itObject = jh.getObjects().iterator();
      while (itObject.hasNext()) {
        Object next = itObject.next();
        // Check that this is a JavaObject (there may be CorruptData objects in the
        // JavaHeap, we don't attempt to count these as instances of known classes).
        if (next instanceof JavaObject) {
View Full Code Here


    Iterator itHeaps = runtime.getHeaps().iterator();
    int countheaps = 1;
   
    while (itHeaps.hasNext())
    {
      JavaHeap theHeap = (JavaHeap)itHeaps.next();
      out.print("\t Heap #" + countheaps + ":  " + theHeap.getName()+ "\n");
      if (param != null){
        printSectionInfo(theHeap, out);
      }
      countheaps++;
    }
View Full Code Here

    Iterator itHeaps = jr.getHeaps().iterator();
    int countheaps = 1;
   
    while (itHeaps.hasNext())
    {
      JavaHeap theHeap = (JavaHeap)itHeaps.next();
      if (theHeap.getName().indexOf(param)==0){
        out.print("\t Heap #" + countheaps + ":  " + theHeap.getName()+"\n");
        printOccupancyInfo(theHeap, out);
        printSectionInfo(theHeap, out);
        foundHeap = true;
      }
      countheaps++;
View Full Code Here

TOP

Related Classes of javax.tools.diagnostics.runtime.java.JavaHeap

Copyright © 2018 www.massapicom. 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.