//shark/shark/LeakTraceObject

LeakTraceObject

[jvm]
data class LeakTraceObject(type: LeakTraceObject.ObjectType, className: String, labels: Set<String>, leakingStatus: LeakTraceObject.LeakingStatus, leakingStatusReason: String, retainedHeapByteSize: Int?, retainedObjectCount: Int?) : Serializable

Types

NameSummary
Companion[jvm]
object Companion
LeakingStatus[jvm]
enum LeakingStatus : Enum<LeakTraceObject.LeakingStatus>
ObjectType[jvm]
enum ObjectType : Enum<LeakTraceObject.ObjectType>

Functions

NameSummary
toString[jvm]
open override fun toString(): String

Properties

NameSummary
className[jvm]
val className: String
Class name of the object. The class name format is the same as what would be returned by Class.getName.
classSimpleName[jvm]
val classSimpleName: String
Returns {@link #className} without the package, ie stripped of any string content before the last period (included).
labels[jvm]
val labels: Set<String>
Labels that were computed during analysis. A label provides extra information that helps understand the state of the leak trace object.
leakingStatus[jvm]
val leakingStatus: LeakTraceObject.LeakingStatus
leakingStatusReason[jvm]
val leakingStatusReason: String
retainedHeapByteSize[jvm]
val retainedHeapByteSize: Int?
The minimum number of bytes which would be freed if all references to this object were released. Not null only if the retained heap size was computed AND leakingStatus is equal to LeakingStatus.UNKNOWN or LeakingStatus.LEAKING.
retainedObjectCount[jvm]
val retainedObjectCount: Int?
The minimum number of objects which would be unreachable if all references to this object were released. Not null only if the retained heap size was computed AND leakingStatus is equal to LeakingStatus.UNKNOWN or LeakingStatus.LEAKING.
type[jvm]
val type: LeakTraceObject.ObjectType
typeName[jvm]
val typeName: String