Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Heap dumps on SD card #27

Merged
merged 1 commit into from
May 10, 2015
Merged

Heap dumps on SD card #27

merged 1 commit into from
May 10, 2015

Conversation

pyricau
Copy link
Member

@pyricau pyricau commented May 10, 2015

  • Heap dumps and analysis results were previously saved in the app directory. They are now saved on the external storage (sd card).
  • Centralized internal static helper methods to a dedicated class: LeakCanaryInternals.

BREAKING CHANGES

  • When upgrading, previously saved heap dumps will be lost, but won't be removed from the app directory. You should probably uninstall your app.
  • Added permission WRITE_EXTERNAL_STORAGE
  • Public API change: Removed Application parameter in LeakCanary.androidWatcher()
  • Public API change: Removed Application parameter in AndroidHeapDumper()
  • Fixes Unable to share Heap Dump  #21 (can't share heap dump)
  • This is a step towards fixing StrictMode disk access violation #15 (strict mode violations), although there's still more work.

* Heap dumps and analysis results were previously saved in the app directory. They are now saved on the external storage (sd card).
* Centralized internal static helper methods to a dedicated class: `LeakCanaryInternals`.

BREAKING CHANGES

* When upgrading, previously saved heap dumps will be lost, but won't be removed from the app directory. You should probably uninstall your app.
* Added permission WRITE_EXTERNAL_STORAGE
* Public API change: Removed `Application` parameter in `LeakCanary.androidWatcher()`
* Public API change: Removed `Application` parameter in `AndroidHeapDumper()`

* Fixes #21 (can't share heap dump)
* This is a step towards fixing #15 (strict mode violations), although there's still more work.
@pyricau
Copy link
Member Author

pyricau commented May 10, 2015

cc @swankjesse

pyricau added a commit that referenced this pull request May 10, 2015
TMP COMMIT, DO NOT MERGE.

This enables Strict Mode. Once #27 is merged, we can move forwards fixing all strict mode violations.
pyricau added a commit that referenced this pull request May 10, 2015
TMP COMMIT, DO NOT MERGE.

This enables Strict Mode in the sample app. Once #27 is merged, we can move forwards fixing all strict mode violations.
@swankjesse
Copy link
Contributor

Dig.

swankjesse added a commit that referenced this pull request May 10, 2015
@swankjesse swankjesse merged commit 930aa6a into master May 10, 2015
@pyricau pyricau deleted the py/sdcard branch May 10, 2015 20:05
Yky pushed a commit to Yky/leakcanary that referenced this pull request Feb 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to share Heap Dump
2 participants