All changes in 1.4+ are tracked here.
- Add reason for ignoring to analysis result #365.
- Lower memory usage when parsing heap dumps on M #223.
- Fix NPE in LeakCanaryInternals.isInServiceProcess() #449.
- New ignored Android SDK leaks #297,#322.
- Use leakcanary-android-no-op in test builds #143.
- Fixes to allow LeakCanary to work with ProGuard #398.
- Optimize png assets #406.
- Fix delete button not working on error views #408.
- Add German translation #437.
- Switched to HAHA 2.0.2 with uses Perflib instead of MAT under the hood #219. This fixes crashes and improves speed a lot.
- We can now parse Android M heap dumps #267, although there are still memory issues (see #223).
- Excluded leaks are now reported as well and available in the display leak activity.
- Added ProGuard configuration for #132.
- Many new ignored Android SDK leaks.
- Added excluded leaks to text report #119.
- Added LeakCanary SHA to text report #120.
- Added CanaryLog API to replace the logger: #201.
- Renamed all resources to begin with
leak_canary_
instead of__leak_canary
#161 - No crash when heap dump fails #226.
- Add retained size to leak reports #162.
- AnalysisResult.failure is now a
Throwable
instead of anException
. Main goal is to catch and correctly report OOMs while parsing. - Added ARRAY_ENTRY to LeakTraceElement.Type for references through array entries.
- Renamed
ExcludedRefs
fields. - Each
ExcludedRef
entry can now be ignored entirely or "kept only if no other path". - Added support for ignoring all fields (static and non static) for a given class.
- Heap dumps and analysis results are now saved on the sd card: #21.
ExcludedRef
andAndroidExcludedRefs
are customizable: #12 #73.- 7 new ignored Android SDK leaks: #1 #4 #32 #89 #82 #97.
- Fixed 3 crashes in LeakCanary: #37 #46 #66.
- Fixed StrictMode thread policy violations: #15.
- Updated
minSdkVersion
from9
to8
: #57. - Added LeakCanary version name to
LeakCanary.leakInfo()
: #49. leakcanary-android-no-op
is lighter, it does not depend onleakcanary-watcher
anymore, only 2 classes now: #74.- Adding field state details to the text leak trace.
- A Toast is displayed while the heap dump is in progress to warn that the UI will freeze: #20. You can customize the toast by providing your own layout named
__leak_canary_heap_dump_toast.xml
(e.g. you could make it an empty layout). - If the analysis fails, the result and heap dump are kept so that it can be reported to LeakCanary: #102.
- Update to HAHA 1.3 to fix a 2 crashes #3 46
- When upgrading from 1.3 to 1.3.1, previously saved heap dumps will not be readable any more, but they won't be removed from the app directory. You should probably uninstall your app.
- Added
android.permission.WRITE_EXTERNAL_STORAGE
toleakcanary-android
artifact. LeakCanary.androidWatcher()
parameter types have changed (+ExcludedRefs).LeakCanary.leakInfo()
parameter types have changed (+boolean)ExcludedRef
is now serializable and immutable, instances can be created usingExcludedRef.Builder
.ExcludedRef
is available inHeapDump
AndroidExcludedRefs
is an enum, you can now pick the leaks you want to ignore inAndroidExcludedRefs
by creating anEnumSet
and callingAndroidExcludedRefs.createBuilder()
.AndroidExcludedRefs.createAppDefaults()
&AndroidExcludedRefs.createAndroidDefaults()
return aExcludedRef.Builder
.ExcludedRef
moved fromleakcanary-analyzer
toleakcanary-watcher
Initial release.