Skip to content

Feature Request: show absolute before/after size (not just the diff) #414

Description

@mhansen

Hi bloat busters, today I was using bloaty to track down binary size increases.

I got output like this:

    FILE SIZE        VM SIZE
 --------------  --------------
  [NEW] +1016Ki  [NEW]  +360Ki    proto2::internal::InternalMetadataOffset::Build<>()
   +56%  +761Ki   +62%  +293Ki    proto2::RepeatedPtrField<>::RepeatedPtrField()

I wanted to add a column showing the absolute size before. I suppose I can work it out with some maths using something like:

X2 = X1 + 761Ki
X2 = X1 * 1.56
X1 + 761Ki = X1 * 1.56 # set both sides equal
761Ki = X1 * 0.56 # subtract X from both sides
761Ki / 0.56 = X1
X1 = 1358

But it would be great if users didn't have to do this. Thank you!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions