Skip to content
🤔 Documentation issue? Report it

//leakcanary-repo/shark/HeapAnalysisSuccess

HeapAnalysisSuccess

[jvm]\ data class HeapAnalysisSuccess(val heapDumpFile: File, val createdAtTimeMillis: Long, val dumpDurationMillis: Long = DUMP_DURATION_UNKNOWN, val analysisDurationMillis: Long, val metadata: Map<String, String>, val applicationLeaks: List<ApplicationLeak>, val libraryLeaks: List<LibraryLeak>, val unreachableObjects: List<LeakTraceObject>) : HeapAnalysis

The result of a successful heap analysis performed by HeapAnalyzer.

Constructors

HeapAnalysisSuccess [jvm]
constructor(heapDumpFile: File, createdAtTimeMillis: Long, dumpDurationMillis: Long = DUMP_DURATION_UNKNOWN, analysisDurationMillis: Long, metadata: Map<String, String>, applicationLeaks: List<ApplicationLeak>, libraryLeaks: List<LibraryLeak>, unreachableObjects: List<LeakTraceObject>)

Types

Name Summary
Companion [jvm]
object Companion

Functions

Name Summary
toString [jvm]
open override fun toString(): String

Properties

Name Summary
allLeaks [jvm]
val allLeaks: Sequence<Leak>
The list of Leak found in the heap dump by HeapAnalyzer, ie all applicationLeaks and all libraryLeaks in one list.
analysisDurationMillis [jvm]
open override val analysisDurationMillis: Long
Total time spent analyzing the heap.
applicationLeaks [jvm]
val applicationLeaks: List<ApplicationLeak>
The list of ApplicationLeak found in the heap dump by HeapAnalyzer.
assertionTag [androidJvm]
val HeapAnalysisSuccess.assertionTag: String?
createdAtTimeMillis [jvm]
open override val createdAtTimeMillis: Long
The System.currentTimeMillis when this HeapAnalysis instance was created.
dumpDurationMillis [jvm]
open override val dumpDurationMillis: Long
Total time spent dumping the heap.
heapDumpFile [jvm]
open override val heapDumpFile: File
The hprof file that was analyzed.
libraryLeaks [jvm]
val libraryLeaks: List<LibraryLeak>
The list of LibraryLeak found in the heap dump by HeapAnalyzer.
metadata [jvm]
val metadata: Map<String, String>
totalDurationMillis [androidJvm]
val HeapAnalysisSuccess.totalDurationMillis: Int?
unreachableObjects [jvm]
val unreachableObjects: List<LeakTraceObject>
waitForRetainedDurationMillis [androidJvm]
val HeapAnalysisSuccess.waitForRetainedDurationMillis: Int?