Skip navigation links
A B C D E F H I L M N O R S V W 

A

AbstractAnalysisResultService - Class in com.squareup.leakcanary
 
AbstractAnalysisResultService() - Constructor for class com.squareup.leakcanary.AbstractAnalysisResultService
 
ActivityInspector() - Constructor for class com.squareup.leakcanary.AndroidReachabilityInspectors.ActivityInspector
 
ActivityRefWatcher - Class in com.squareup.leakcanary
Deprecated.
This was initially part of the LeakCanary API, but should not be any more. AndroidRefWatcherBuilder.watchActivities should be used instead. We will make this class internal in the next major version.
afterDefaultHandling(HeapDump, AnalysisResult, String) - Method in class com.squareup.leakcanary.DisplayLeakService
You can override this method and do a blocking call to a server to upload the leak trace and the heap dump.
analyze(HeapDump) - Method in class com.squareup.leakcanary.ServiceHeapDumpListener
 
AnalyzedHeap - Class in com.squareup.leakcanary
Wraps a HeapDump and corresponding AnalysisResult.
AnalyzedHeap(HeapDump, AnalysisResult, File) - Constructor for class com.squareup.leakcanary.AnalyzedHeap
 
AndroidDebuggerControl - Class in com.squareup.leakcanary
 
AndroidDebuggerControl() - Constructor for class com.squareup.leakcanary.AndroidDebuggerControl
 
AndroidExcludedRefs - Enum in com.squareup.leakcanary
This class is a work in progress.
AndroidHeapDumper - Class in com.squareup.leakcanary
 
AndroidHeapDumper(Context, LeakDirectoryProvider) - Constructor for class com.squareup.leakcanary.AndroidHeapDumper
 
AndroidReachabilityInspectors - Enum in com.squareup.leakcanary
A set of default Reachability.Inspectors that knows about common AOSP and library classes.
AndroidReachabilityInspectors.ActivityInspector - Class in com.squareup.leakcanary
 
AndroidReachabilityInspectors.ApplicationInspector - Class in com.squareup.leakcanary
 
AndroidReachabilityInspectors.DialogInspector - Class in com.squareup.leakcanary
 
AndroidReachabilityInspectors.FragmentInspector - Class in com.squareup.leakcanary
 
AndroidReachabilityInspectors.MainThreadInspector - Class in com.squareup.leakcanary
 
AndroidReachabilityInspectors.MessageQueueInspector - Class in com.squareup.leakcanary
 
AndroidReachabilityInspectors.MortarPresenterInspector - Class in com.squareup.leakcanary
 
AndroidReachabilityInspectors.SupportFragmentInspector - Class in com.squareup.leakcanary
 
AndroidReachabilityInspectors.ViewImplInspector - Class in com.squareup.leakcanary
 
AndroidReachabilityInspectors.ViewInspector - Class in com.squareup.leakcanary
 
AndroidReachabilityInspectors.WindowInspector - Class in com.squareup.leakcanary
 
AndroidRefWatcherBuilder - Class in com.squareup.leakcanary
A RefWatcherBuilder with appropriate Android defaults.
AndroidWatchExecutor - Class in com.squareup.leakcanary
WatchExecutor suitable for watching Android reference leaks.
AndroidWatchExecutor(long) - Constructor for class com.squareup.leakcanary.AndroidWatchExecutor
 
ApplicationInspector() - Constructor for class com.squareup.leakcanary.AndroidReachabilityInspectors.ApplicationInspector
 

B

buildAndInstall() - Method in class com.squareup.leakcanary.AndroidRefWatcherBuilder
Creates a RefWatcher instance and makes it available through LeakCanary.installedRefWatcher().

C

CanaryLog - Class in com.squareup.leakcanary
 
CanaryLog.Logger - Interface in com.squareup.leakcanary
 
clearLeakDirectory() - Method in class com.squareup.leakcanary.DefaultLeakDirectoryProvider
 
clearLeakDirectory() - Method in interface com.squareup.leakcanary.LeakDirectoryProvider
Removes all heap dumps and analysis results, except for heap dumps that haven't been analyzed yet.
com.squareup.leakcanary - package com.squareup.leakcanary
 
createAndroidDefaults() - Static method in enum com.squareup.leakcanary.AndroidExcludedRefs
This returns the references in the leak path that should be ignored by all on Android.
createAppDefaults() - Static method in enum com.squareup.leakcanary.AndroidExcludedRefs
This returns the references in the leak path that can be ignored for app developers.
createBuilder(EnumSet<AndroidExcludedRefs>) - Static method in enum com.squareup.leakcanary.AndroidExcludedRefs
 

D

d(String, Object...) - Static method in class com.squareup.leakcanary.CanaryLog
 
d(Throwable, String, Object...) - Static method in class com.squareup.leakcanary.CanaryLog
 
d(String, Object...) - Method in interface com.squareup.leakcanary.CanaryLog.Logger
 
d(Throwable, String, Object...) - Method in interface com.squareup.leakcanary.CanaryLog.Logger
 
defaultAndroidInspectors() - Static method in enum com.squareup.leakcanary.AndroidReachabilityInspectors
 
defaultDebuggerControl() - Method in class com.squareup.leakcanary.AndroidRefWatcherBuilder
 
defaultExcludedRefs() - Method in class com.squareup.leakcanary.AndroidRefWatcherBuilder
 
defaultHeapDumper() - Method in class com.squareup.leakcanary.AndroidRefWatcherBuilder
 
defaultHeapDumpListener() - Method in class com.squareup.leakcanary.AndroidRefWatcherBuilder
 
DefaultLeakDirectoryProvider - Class in com.squareup.leakcanary
 
DefaultLeakDirectoryProvider(Context) - Constructor for class com.squareup.leakcanary.DefaultLeakDirectoryProvider
 
DefaultLeakDirectoryProvider(Context, int) - Constructor for class com.squareup.leakcanary.DefaultLeakDirectoryProvider
 
defaultReachabilityInspectorClasses() - Method in class com.squareup.leakcanary.AndroidRefWatcherBuilder
 
defaultWatchExecutor() - Method in class com.squareup.leakcanary.AndroidRefWatcherBuilder
 
DialogInspector() - Constructor for class com.squareup.leakcanary.AndroidReachabilityInspectors.DialogInspector
 
DisplayLeakService - Class in com.squareup.leakcanary
Logs leak analysis results, and then shows a notification which will start DisplayLeakActivity.
DisplayLeakService() - Constructor for class com.squareup.leakcanary.DisplayLeakService
 
dumpHeap() - Method in class com.squareup.leakcanary.AndroidHeapDumper
 

E

enableDisplayLeakActivity(Context) - Static method in class com.squareup.leakcanary.LeakCanary
Blocking inter process call that enables the DisplayLeakActivity.
execute(Retryable) - Method in class com.squareup.leakcanary.AndroidWatchExecutor
 
expectedReachability(LeakTraceElement) - Method in class com.squareup.leakcanary.AndroidReachabilityInspectors.ActivityInspector
 
expectedReachability(LeakTraceElement) - Method in class com.squareup.leakcanary.AndroidReachabilityInspectors.ApplicationInspector
 
expectedReachability(LeakTraceElement) - Method in class com.squareup.leakcanary.AndroidReachabilityInspectors.DialogInspector
 
expectedReachability(LeakTraceElement) - Method in class com.squareup.leakcanary.AndroidReachabilityInspectors.FragmentInspector
 
expectedReachability(LeakTraceElement) - Method in class com.squareup.leakcanary.AndroidReachabilityInspectors.MainThreadInspector
 
expectedReachability(LeakTraceElement) - Method in class com.squareup.leakcanary.AndroidReachabilityInspectors.MessageQueueInspector
 
expectedReachability(LeakTraceElement) - Method in class com.squareup.leakcanary.AndroidReachabilityInspectors.MortarPresenterInspector
 
expectedReachability(LeakTraceElement) - Method in class com.squareup.leakcanary.AndroidReachabilityInspectors.SupportFragmentInspector
 
expectedReachability(LeakTraceElement) - Method in class com.squareup.leakcanary.AndroidReachabilityInspectors.ViewImplInspector
 
expectedReachability(LeakTraceElement) - Method in class com.squareup.leakcanary.AndroidReachabilityInspectors.ViewInspector
 
expectedReachability(LeakTraceElement) - Method in class com.squareup.leakcanary.AndroidReachabilityInspectors.WindowInspector
 

F

FragmentInspector() - Constructor for class com.squareup.leakcanary.AndroidReachabilityInspectors.FragmentInspector
 

H

heapDump - Variable in class com.squareup.leakcanary.AnalyzedHeap
 
heapDumpFileExists - Variable in class com.squareup.leakcanary.AnalyzedHeap
 

I

install(Context, RefWatcher) - Static method in class com.squareup.leakcanary.ActivityRefWatcher
Deprecated.
 
install(Application) - Static method in class com.squareup.leakcanary.LeakCanary
Creates a RefWatcher that works out of the box, and starts watching activity references (on ICS+).
installedRefWatcher() - Static method in class com.squareup.leakcanary.LeakCanary
Returns the RefWatcher installed via AndroidRefWatcherBuilder.buildAndInstall(), and RefWatcher.DISABLED is no RefWatcher has been installed.
installOnIcsPlus(Application, RefWatcher) - Static method in class com.squareup.leakcanary.ActivityRefWatcher
Deprecated.
 
isDebuggerAttached() - Method in class com.squareup.leakcanary.AndroidDebuggerControl
 
isDisabled() - Method in class com.squareup.leakcanary.AndroidRefWatcherBuilder
 
isInAnalyzerProcess(Context) - Static method in class com.squareup.leakcanary.LeakCanary
Whether the current process is the process running the HeapAnalyzerService, which is a different process than the normal app process.

L

LeakCanary - Class in com.squareup.leakcanary
 
LeakDirectoryProvider - Interface in com.squareup.leakcanary
Provides access to where heap dumps and analysis results will be stored.
leakInfo(Context, HeapDump, AnalysisResult, boolean) - Static method in class com.squareup.leakcanary.LeakCanary
Returns a string representation of the result of a heap analysis.
listenerServiceClass(Class<? extends AbstractAnalysisResultService>) - Method in class com.squareup.leakcanary.AndroidRefWatcherBuilder
Sets a custom AbstractAnalysisResultService to listen to analysis results.
listFiles(FilenameFilter) - Method in class com.squareup.leakcanary.DefaultLeakDirectoryProvider
 
listFiles(FilenameFilter) - Method in interface com.squareup.leakcanary.LeakDirectoryProvider
 
load(File) - Static method in class com.squareup.leakcanary.AnalyzedHeap
 

M

MainThreadInspector() - Constructor for class com.squareup.leakcanary.AndroidReachabilityInspectors.MainThreadInspector
 
maxStoredHeapDumps(int) - Method in class com.squareup.leakcanary.AndroidRefWatcherBuilder
Sets the maximum number of heap dumps stored.
MessageQueueInspector() - Constructor for class com.squareup.leakcanary.AndroidReachabilityInspectors.MessageQueueInspector
 
MortarPresenterInspector() - Constructor for class com.squareup.leakcanary.AndroidReachabilityInspectors.MortarPresenterInspector
 

N

newHeapDumpFile() - Method in class com.squareup.leakcanary.DefaultLeakDirectoryProvider
 
newHeapDumpFile() - Method in interface com.squareup.leakcanary.LeakDirectoryProvider
 

O

onAnalysisResultFailure(String) - Method in class com.squareup.leakcanary.AbstractAnalysisResultService
Called when there was an error saving or loading the analysis result.
onAnalysisResultFailure(String) - Method in class com.squareup.leakcanary.DisplayLeakService
 
onHandleIntentInForeground(Intent) - Method in class com.squareup.leakcanary.AbstractAnalysisResultService
 
onHeapAnalyzed(AnalyzedHeap) - Method in class com.squareup.leakcanary.AbstractAnalysisResultService
Called after a heap dump is analyzed, whether or not a leak was found.
onHeapAnalyzed(HeapDump, AnalysisResult) - Method in class com.squareup.leakcanary.AbstractAnalysisResultService
Deprecated.
Maintained for backward compatibility. You should override AbstractAnalysisResultService.onHeapAnalyzed(AnalyzedHeap) instead.
onHeapAnalyzed(AnalyzedHeap) - Method in class com.squareup.leakcanary.DisplayLeakService
 

R

refWatcher(Context) - Static method in class com.squareup.leakcanary.LeakCanary
 
result - Variable in class com.squareup.leakcanary.AnalyzedHeap
 

S

save(HeapDump, AnalysisResult) - Static method in class com.squareup.leakcanary.AnalyzedHeap
 
selfFile - Variable in class com.squareup.leakcanary.AnalyzedHeap
 
selfLastModified - Variable in class com.squareup.leakcanary.AnalyzedHeap
 
sendResultToListener(Context, String, HeapDump, AnalysisResult) - Static method in class com.squareup.leakcanary.AbstractAnalysisResultService
 
ServiceHeapDumpListener - Class in com.squareup.leakcanary
 
ServiceHeapDumpListener(Context, Class<? extends AbstractAnalysisResultService>) - Constructor for class com.squareup.leakcanary.ServiceHeapDumpListener
 
setDisplayLeakActivityDirectoryProvider(LeakDirectoryProvider) - Static method in class com.squareup.leakcanary.LeakCanary
setLeakDirectoryProvider(LeakDirectoryProvider) - Static method in class com.squareup.leakcanary.LeakCanary
Used to customize the location for the storage of heap dumps.
setLogger(CanaryLog.Logger) - Static method in class com.squareup.leakcanary.CanaryLog
 
stopWatchingActivities() - Method in class com.squareup.leakcanary.ActivityRefWatcher
Deprecated.
 
SupportFragmentInspector() - Constructor for class com.squareup.leakcanary.AndroidReachabilityInspectors.SupportFragmentInspector
 

V

valueOf(String) - Static method in enum com.squareup.leakcanary.AndroidExcludedRefs
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.squareup.leakcanary.AndroidReachabilityInspectors
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.squareup.leakcanary.AndroidExcludedRefs
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.squareup.leakcanary.AndroidReachabilityInspectors
Returns an array containing the constants of this enum type, in the order they are declared.
ViewImplInspector() - Constructor for class com.squareup.leakcanary.AndroidReachabilityInspectors.ViewImplInspector
 
ViewInspector() - Constructor for class com.squareup.leakcanary.AndroidReachabilityInspectors.ViewInspector
 

W

watchActivities() - Method in class com.squareup.leakcanary.ActivityRefWatcher
Deprecated.
 
watchActivities(boolean) - Method in class com.squareup.leakcanary.AndroidRefWatcherBuilder
Whether we should automatically watch activities when calling AndroidRefWatcherBuilder.buildAndInstall().
watchDelay(long, TimeUnit) - Method in class com.squareup.leakcanary.AndroidRefWatcherBuilder
Sets a custom delay for how long the RefWatcher should wait until it checks if a tracked object has been garbage collected.
watchFragments(boolean) - Method in class com.squareup.leakcanary.AndroidRefWatcherBuilder
Whether we should automatically watch fragments when calling AndroidRefWatcherBuilder.buildAndInstall().
WindowInspector() - Constructor for class com.squareup.leakcanary.AndroidReachabilityInspectors.WindowInspector
 
A B C D E F H I L M N O R S V W 
Skip navigation links