-
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
[Perf] Stop reporting retained size #1011
Milestone
Comments
pyricau
added a commit
that referenced
this issue
Jun 18, 2018
It turns out computing the retained size is really slow. This change turns it off by default (can be turned on if needed). LeakCanary is much faster now! Fixes #1011
pyricau
added a commit
that referenced
this issue
Jun 18, 2018
It turns out computing the retained size is really slow. This change turns it off by default (can be turned on if needed). LeakCanary is much faster now! Fixes #1011
pyricau
added a commit
that referenced
this issue
Jun 19, 2018
It turns out computing the retained size is really slow. This change turns it off by default (can be turned on if needed). LeakCanary is much faster now! Fixes #1011
Is there any API to turn this feature on if I really need the size so that I know which leak is the worst one? |
@ashima0512 RefWatcherBuilder.computeRetainedHeapSize() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A quick test showed that the vast majority of the time on my Pixel2 was spent computing dominators, which is needed to calculate the retained size.
Maybe we should stop computing retained size, or maybe we could make that optional, or async.
The text was updated successfully, but these errors were encountered: