-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Initial notification when generating Heap Dump #20
Comments
That's an interesting idea. While it's not built in LeakCanary at the moment, you should be able to implement it easily.
I don't know if this is something we should build into LeakCanary or not, and I'm also not sure what the best sort of notification would be for that usage (notification, toast, adding a view to the hierarchy).. thoughts? |
I'm currently thinking of doing this only for the duration of the call to However, before that we do a GC, and after that we perform the analysis in a separate process. The GC can take ~0.5s, while the heap dump can take ~3s. The analysis can take a minute. |
Display a Toast while heap dump is in progress. Fixes #20.
Display a Toast while heap dump is in progress. Fixes square#20.
Creating and processing a Heap Dump does freeze UI for a significant amount of time for large heap dumps.
It's 8 seconds for me during which the application is unresponsive.
Of course the users won't be affected by that but our QA will.
Do you think it is a good idea to show a Toast (or any other notification) when you start the process. Will make users more aware why app is unresponsive.
The text was updated successfully, but these errors were encountered: