google / google/bloaty

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

Open
#414 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
C++
Stars
5.5k
Forks
378
Avg merge
23h 54m
Merged PRs (30d)
6

Description

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!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.