Strip heap dumps from primitive arrays

* New HprofPrimitiveArrayStripper that can replace all primitive arrays in an hprof file with empty arrays.
* This can be useful to strip an Hprof of any PII before sharing it.
* New CLI command: `./bin/leakcanary-cli strip-hprof /path/to/heapdump.hprof`
* Also renamed CLI command from analyze-file to analyze-hprof
5 files changed
tree: ff95e32f0466bdb29d88cef042e4d67cc5e6ed86
  1. .buildscript/
  2. .github/
  3. docs/
  4. gradle/
  5. leakcanary-analyzer/
  6. leakcanary-android/
  7. leakcanary-android-core/
  8. leakcanary-android-instrumentation/
  9. leakcanary-android-process/
  10. leakcanary-cli/
  11. leakcanary-fragments-androidx/
  12. leakcanary-haha/
  13. leakcanary-leaksentry/
  14. leakcanary-log/
  15. leakcanary-sample/
  16. leakcanary-watcher/
  17. .gitignore
  18. .travis.yml
  19. 2019-07-15_14-19-14_744.hprof
  20. build.gradle
  21. checkstyle.xml
  22. gradle.properties
  23. gradlew
  24. LICENSE.txt
  25. mkdocs.yml
  26. README-1.6.md
  27. README.md
  28. settings.gradle
README.md

LeakCanary 🐤

A memory leak detection library for Android.

square.github.io/leakcanary

License

Copyright 2015 Square, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.