-
public final class LeakCanary.Config.BuilderBuilder for LeakCanary.Config intended to be used only from Java code.
Usage:
LeakCanary.Config config = LeakCanary.getConfig().newBuilder() .retainedVisibleThreshold(3) .build(); LeakCanary.setConfig(config);For idiomatic Kotlin use
copy()method instead:LeakCanary.config = LeakCanary.config.copy(retainedVisibleThreshold = 3)
-
-
Method Summary
Modifier and Type Method Description final <ERROR CLASS>dumpHeap(Boolean dumpHeap)final <ERROR CLASS>dumpHeapWhenDebugging(Boolean dumpHeapWhenDebugging)final <ERROR CLASS>retainedVisibleThreshold(Integer retainedVisibleThreshold)final <ERROR CLASS>referenceMatchers(List<ReferenceMatcher> referenceMatchers)final <ERROR CLASS>objectInspectors(List<ObjectInspector> objectInspectors)final <ERROR CLASS>metadataExtractor(MetadataExtractor metadataExtractor)final <ERROR CLASS>computeRetainedHeapSize(Boolean computeRetainedHeapSize)final <ERROR CLASS>maxStoredHeapDumps(Integer maxStoredHeapDumps)final <ERROR CLASS>requestWriteExternalStoragePermission(Boolean requestWriteExternalStoragePermission)final <ERROR CLASS>leakingObjectFinder(LeakingObjectFinder leakingObjectFinder)final <ERROR CLASS>heapDumper(HeapDumper heapDumper)final <ERROR CLASS>eventListeners(List<EventListener> eventListeners)final <ERROR CLASS>showNotifications(Boolean showNotifications)final LeakCanary.Configbuild()-
-
Method Detail
-
dumpHeapWhenDebugging
final <ERROR CLASS> dumpHeapWhenDebugging(Boolean dumpHeapWhenDebugging)
-
retainedVisibleThreshold
final <ERROR CLASS> retainedVisibleThreshold(Integer retainedVisibleThreshold)
-
referenceMatchers
final <ERROR CLASS> referenceMatchers(List<ReferenceMatcher> referenceMatchers)
-
objectInspectors
final <ERROR CLASS> objectInspectors(List<ObjectInspector> objectInspectors)
-
metadataExtractor
final <ERROR CLASS> metadataExtractor(MetadataExtractor metadataExtractor)
-
computeRetainedHeapSize
final <ERROR CLASS> computeRetainedHeapSize(Boolean computeRetainedHeapSize)
-
maxStoredHeapDumps
final <ERROR CLASS> maxStoredHeapDumps(Integer maxStoredHeapDumps)
-
requestWriteExternalStoragePermission
final <ERROR CLASS> requestWriteExternalStoragePermission(Boolean requestWriteExternalStoragePermission)
-
leakingObjectFinder
final <ERROR CLASS> leakingObjectFinder(LeakingObjectFinder leakingObjectFinder)
-
heapDumper
final <ERROR CLASS> heapDumper(HeapDumper heapDumper)
-
eventListeners
final <ERROR CLASS> eventListeners(List<EventListener> eventListeners)
-
showNotifications
final <ERROR CLASS> showNotifications(Boolean showNotifications)
-
build
final LeakCanary.Config build()
-
-
-
-