Skip to content

Percent format #11

@egorlitvinenko

Description

@egorlitvinenko

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 %

?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions