public class HeapHprofBinWriter extends AbstractHeapGraphWriter
javaLangClass, javaLangString, javaLangThread
Constructor and Description |
---|
HeapHprofBinWriter() |
Modifier and Type | Method and Description |
---|---|
static int |
signatureToHprofKind(char ch) |
void |
write(java.lang.String fileName)
writes the heap graph in the given file
|
protected void |
writeClass(Instance instance) |
protected void |
writeGlobalJNIHandle(Address handleAddr) |
protected void |
writeHeapRecordEpilogue() |
protected void |
writeHeapRecordPrologue() |
protected void |
writeInstance(Instance instance) |
protected void |
writeJavaThread(JavaThread jt,
int index) |
protected void |
writeLocalJNIHandles(JavaThread jt,
int index) |
protected void |
writeObjectArray(ObjArray array) |
protected void |
writePrimitiveArray(TypeArray array) |
handleRuntimeException, isJavaVisible, write, writeBooleanField, writeByteField, writeCharField, writeDoubleField, writeFloatField, writeGlobalJNIHandles, writeHeapFooter, writeHeapHeader, writeInternalObject, writeIntField, writeJavaThreads, writeLongField, writeObject, writeObjectFields, writeObjectFields, writeObjectFooter, writeObjectHeader, writeReferenceField, writeShortField, writeString, writeThread
public void write(java.lang.String fileName) throws java.io.IOException
HeapGraphWriter
java.io.IOException
protected void writeHeapRecordPrologue() throws java.io.IOException
writeHeapRecordPrologue
in class AbstractHeapGraphWriter
java.io.IOException
protected void writeHeapRecordEpilogue() throws java.io.IOException
writeHeapRecordEpilogue
in class AbstractHeapGraphWriter
java.io.IOException
protected void writeClass(Instance instance) throws java.io.IOException
writeClass
in class AbstractHeapGraphWriter
java.io.IOException
protected void writeJavaThread(JavaThread jt, int index) throws java.io.IOException
writeJavaThread
in class AbstractHeapGraphWriter
java.io.IOException
protected void writeLocalJNIHandles(JavaThread jt, int index) throws java.io.IOException
java.io.IOException
protected void writeGlobalJNIHandle(Address handleAddr) throws java.io.IOException
writeGlobalJNIHandle
in class AbstractHeapGraphWriter
java.io.IOException
protected void writeObjectArray(ObjArray array) throws java.io.IOException
writeObjectArray
in class AbstractHeapGraphWriter
java.io.IOException
protected void writePrimitiveArray(TypeArray array) throws java.io.IOException
writePrimitiveArray
in class AbstractHeapGraphWriter
java.io.IOException
protected void writeInstance(Instance instance) throws java.io.IOException
writeInstance
in class AbstractHeapGraphWriter
java.io.IOException
public static int signatureToHprofKind(char ch)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.