}
public void report(File dump) throws IOException {
HProfFile h=HProfFactory.createReader(dump);
h.open();
String header=h.getHeader();
int idSize=h.getIdentifierSize();
long timeStamp=h.getTimeStamp();
out.println("HPROF : "+header);
out.println("ID SIZE : "+idSize);
out.println("TIMESTAMP: "+timeStamp);
int counter=0;
while(true) {
IHProfRecord record=h.getRecord(counter);
if(record==null) break;
report(record);
counter++;
}
reportStats();
out.println("Report completed. "+counter+" records");
h.close();
}