🤔 Documentation issue? Report it
//leakcanary-repo/shark/HprofWriterHelper
HprofWriterHelper
[jvm]\
class HprofWriterHelper(writer: HprofWriter) : Closeable
Constructors
Types
Functions
Name |
Summary |
arrayClass |
[jvm] fun arrayClass(className: String): Long |
clazz |
[jvm] fun clazz(className: String, superclassId: Long = -1L, staticFields: List<Pair<String, ValueHolder>> = emptyList(), fields: List<Pair<String, KClass<out ValueHolder>>> = emptyList()): Long fun clazz(classNameRecord: HprofRecord.StringRecord, superclassId: Long = -1L, staticFields: List<Pair<Long, ValueHolder>> = emptyList(), fields: List<Pair<Long, KClass<out ValueHolder>>> = emptyList()): Long |
clazz |
[jvm] infix fun String.clazz(block: HprofWriterHelper.ClassDefinition.() -> Unit): Long |
close |
[jvm] open override fun close() |
gcRoot |
[jvm] fun gcRoot(gcRoot: GcRoot) |
instance |
[jvm] fun instance(classId: Long, fields: List<ValueHolder> = emptyList()): ValueHolder.ReferenceHolder |
instance |
[jvm] infix fun String.instance(block: HprofWriterHelper.InstanceAndClassDefinition.() -> Unit): ValueHolder.ReferenceHolder |
keyedWeakReference |
[jvm] fun keyedWeakReference(referentInstanceId: ValueHolder.ReferenceHolder): ValueHolder.ReferenceHolder |
objectArray |
[jvm] fun objectArray(vararg elements: ValueHolder.ReferenceHolder): ValueHolder.ReferenceHolder fun objectArray(classId: Long, array: LongArray): Long |
objectArrayOf |
[jvm] fun objectArrayOf(classId: Long, vararg elements: ValueHolder.ReferenceHolder): ValueHolder.ReferenceHolder |
primitiveLongArray |
[jvm] fun primitiveLongArray(array: LongArray): Long |
string |
[jvm] fun string(string: String): ValueHolder.ReferenceHolder |
stringRecord |
[jvm] fun stringRecord(name: String): HprofRecord.StringRecord |
watchedInstance |
[jvm] infix fun String.watchedInstance(block: HprofWriterHelper.InstanceAndClassDefinition.() -> Unit): ValueHolder.ReferenceHolder |
Properties