Skip to content
🤔 Documentation issue? Report it

//leakcanary/shark/LeakTraceObject

LeakTraceObject

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

Constructors

LeakTraceObject fun LeakTraceObject(type: LeakTraceObject.ObjectType, className: String, labels: Set<String>, leakingStatus: LeakTraceObject.LeakingStatus, leakingStatusReason: String, retainedHeapByteSize: Int?, retainedObjectCount: Int?)

Types

Name Summary
Companion object Companion
LeakingStatus enum LeakingStatus : Enum<LeakTraceObject.LeakingStatus>
ObjectType enum ObjectType : Enum<LeakTraceObject.ObjectType>

Functions

Name Summary
toString open override fun toString(): String

Properties

Name Summary
className val className: String
Class name of the object. The class name format is the same as what would be returned by Class.getName.
classSimpleName val classSimpleName: String
Returns {@link #className} without the package, ie stripped of any string content before the last period (included).
labels 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 val leakingStatus: LeakTraceObject.LeakingStatus
leakingStatusReason val leakingStatusReason: String
retainedHeapByteSize 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 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 val type: LeakTraceObject.ObjectType
typeName val typeName: String