public static HprofByteBuffer newFileBuffer(File file) throws IOException { return HeapFactory.createHprofByteBuffer(file, HeapFactory.DEFAULT_BUFFER); }
private static HprofByteBuffer createBuffer(File heapDump, long bufferSize) throws IOException { try { if (isGZIP(heapDump)) { return createCompressedHprofBuffer(heapDump, bufferSize); } } catch(NoClassDefFoundError e) { // GZip parser is not available } HprofByteBuffer bb = HeapFactory.createHprofByteBuffer(heapDump, bufferSize); return bb; }
HprofHeap(File dumpFile, int seg) throws FileNotFoundException, IOException { dumpBuffer = HeapFactory.createHprofByteBuffer(dumpFile, HeapFactory.DEFAULT_BUFFER); segment = seg; fillTagBounds(dumpBuffer.getHeaderSize()); heapDumpSegment = computeHeapDumpStart(); if (heapDumpSegment != null) { fillHeapTagBounds(); } idToOffsetMap = initIdMap(); nearestGCRoot = new NearestGCRoot(this); }
public static HprofByteBuffer newFileBuffer(File file) throws IOException { return HeapFactory.createHprofByteBuffer(file, HeapFactory.DEFAULT_BUFFER); }
private static HprofByteBuffer createBuffer(File heapDump, long bufferSize) throws IOException { try { if (isGZIP(heapDump)) { return createCompressedHprofBuffer(heapDump, bufferSize); } } catch(NoClassDefFoundError e) { // GZip parser is not available } HprofByteBuffer bb = HeapFactory.createHprofByteBuffer(heapDump, bufferSize); return bb; }
HprofHeap(File dumpFile, int seg) throws FileNotFoundException, IOException { dumpBuffer = HeapFactory.createHprofByteBuffer(dumpFile, HeapFactory.DEFAULT_BUFFER); segment = seg; fillTagBounds(dumpBuffer.getHeaderSize()); heapDumpSegment = computeHeapDumpStart(); if (heapDumpSegment != null) { fillHeapTagBounds(); } idToOffsetMap = initIdMap(); nearestGCRoot = new NearestGCRoot(this); }