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

Percent format #11

Open
egorlitvinenko opened this issue Sep 8, 2017 · 0 comments
Open

Percent format #11

egorlitvinenko opened this issue Sep 8, 2017 · 0 comments

Comments

@egorlitvinenko
Copy link

egorlitvinenko commented Sep 8, 2017

I see this output:

SomeOtherClass.OtherMethod: 2,342,864 (6.93%) bytes in 48,242 (8.43%) objects (avg size 49 bytes)
SomeClass.SomeMethod:       5,491,856 (0.02%) bytes in 343,241 (0.10%) objects (avg size 16 bytes)

It is confused me. Why OtherMethod is 6.93 %, when SomeMethod is 0.02%, if 2,342,864 < 5,491,856?
Is it right that this percentage is calculated as

garbage_produced_by(SomeClass.SomeMethod) / total_produced_garbage(343,241 objects using SomeClass.SomeMethod) * 100 %

?

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

No branches or pull requests

1 participant