Examples of IHProfRecord


Examples of org.apache.kato.hprof.datalayer.IHProfRecord

    h.open();
   
   
    int counter=0;
    while(true) {
      IHProfRecord record=h.getRecord(counter);
      if(record==null) break;
      report(record);
      counter++;
    }
   
View Full Code Here

Examples of org.apache.kato.hprof.datalayer.IHProfRecord

   
    String header=h.getHeader();
    int    idSize=h.getIdentifierSize();
    long   timeStamp=h.getTimeStamp();
   
    IHProfRecord record=h.getRecord(0);
    assertNotNull(record);
   
    System.out.println("tag="+Integer.toHexString(record.getTag()));
    h.close();
   
  }
View Full Code Here

Examples of org.apache.kato.hprof.datalayer.IHProfRecord

    if(utf8s.containsKey(id)==false) return null;
    int ref=utf8s.get(id);
    return getName(ref);
  }
  private String getName(int ref) {
    IHProfRecord record=prof.getRecord(ref);
   
    if(record instanceof IUTF8HProfRecord) {
      IUTF8HProfRecord  utf8rec=(IUTF8HProfRecord) record;
      return utf8rec.getAsString();
    }
View Full Code Here

Examples of org.apache.kato.hprof.datalayer.IHProfRecord

    out.println("TIMESTAMP: "+timeStamp);
   
    int counter=0;
    while(true) {
     
      IHProfRecord record=h.getRecord(counter);
      if(record==null) break;
      report(record);
      counter++;
    }
   
View Full Code Here

Examples of org.apache.kato.hprof.datalayer.IHProfRecord

    recordSummary=new ClassSummary();

    int heapRecordNo=0;
    while (true) {
      IHProfRecord record = file.getRecord(r);
      if (record == null)
        break;

      String tagName=HProfRecordFormatter.getTagName(record);
      recordSummary.record(record);
View Full Code Here

Examples of org.apache.kato.hprof.datalayer.IHProfRecord

     
      if (location == null) {
        continue;
      }
     
      IHProfRecord record =  heapRecord.getSubRecordByLocation(location);
      long classLoaderObjectID = 0L;
      long classObjectID = 0L;
      if (record instanceof IGCClassHeapDumpRecord) {
        IGCClassHeapDumpRecord classRecord = (IGCClassHeapDumpRecord) record;
       
View Full Code Here

Examples of org.apache.kato.hprof.datalayer.IHProfRecord

    Long loc = idToLocationMap.getLocation(id);
    if (loc == null) {
      return null;
    }
   
    IHProfRecord record =  heapRecord.getSubRecordByLocation(loc);
   
    if (record == null) {
      return null;
    }
   
View Full Code Here

Examples of org.apache.kato.hprof.datalayer.IHProfRecord

  private void summariseHeap(IHeapDumpHProfRecord heapRecord) {
   
    int index=0;
   
    while(true) {
      IHProfRecord rec=heapRecord.getSubRecord(index);
     
      /* Record the ID of this record and location in ID to record map
       * if this record is of an appropriate type.
       */
      if (rec instanceof IHeapObject) {
View Full Code Here

Examples of org.apache.kato.hprof.datalayer.IHProfRecord

  public String getUTF8String(long id) {

    int record = getUTF8RecordID(id);
    if (record < 0)
      return "";
    IHProfRecord rec = file.getRecord(record);
    if (rec == null)
      return null;
    if (rec instanceof IUTF8HProfRecord) {
      IUTF8HProfRecord utf8record = (IUTF8HProfRecord) rec;
      return utf8record.getAsString();
View Full Code Here

Examples of org.apache.kato.hprof.datalayer.IHProfRecord

  public int getUTF8Length(long id) {

    int record = getUTF8RecordID(id);
    if (record < 0)
      return record;
    IHProfRecord rec = file.getRecord(record);
    if (rec == null)
      return -2;
    if (rec instanceof IUTF8HProfRecord) {
      IUTF8HProfRecord utf8record = (IUTF8HProfRecord) rec;
      return utf8record.getCharacters().length;
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.