public final class DefaultLeakDirectoryProvider extends java.lang.Object implements LeakDirectoryProvider
Constructor and Description |
---|
DefaultLeakDirectoryProvider(android.content.Context context) |
DefaultLeakDirectoryProvider(android.content.Context context,
int maxStoredHeapDumps) |
Modifier and Type | Method and Description |
---|---|
void |
clearLeakDirectory()
Removes all heap dumps and analysis results, except for heap dumps that haven't been
analyzed yet.
|
java.util.List<java.io.File> |
listFiles(java.io.FilenameFilter filter) |
java.io.File |
newHeapDumpFile() |
public DefaultLeakDirectoryProvider(android.content.Context context)
public DefaultLeakDirectoryProvider(android.content.Context context, int maxStoredHeapDumps)
public java.util.List<java.io.File> listFiles(java.io.FilenameFilter filter)
listFiles
in interface LeakDirectoryProvider
public java.io.File newHeapDumpFile()
newHeapDumpFile
in interface LeakDirectoryProvider
HeapDumper#RETRY_LATER
if a new heap dump file could not be created.public void clearLeakDirectory()
LeakDirectoryProvider
clearLeakDirectory
in interface LeakDirectoryProvider