main

square/leakcanary

Last updated at: 29/12/2023 09:39

HeapAnalysisDecision.kt

TLDR

The provided file contains the HeapAnalysisDecision class and its sealed subclasses. This class is used to represent the decision made during heap analysis, either to analyze the heap or to skip the analysis for a specific reason.

Classes

HeapAnalysisDecision

This class is a sealed class representing the decision made during heap analysis. It has two subclasses: AnalyzeHeap and NoHeapAnalysis.

AnalyzeHeap

This subclass of HeapAnalysisDecision represents the decision to analyze the heap.

NoHeapAnalysis

This subclass of HeapAnalysisDecision represents the decision to skip the heap analysis. It takes a reason parameter in its constructor to provide the reason for skipping the analysis.

package leakcanary

sealed class HeapAnalysisDecision {
  object AnalyzeHeap : HeapAnalysisDecision()
  class NoHeapAnalysis(val reason: String) : HeapAnalysisDecision()
}