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

Total size in compare dont show correctly ! #350

Open
citrix123 opened this issue Jul 12, 2023 · 1 comment
Open

Total size in compare dont show correctly ! #350

citrix123 opened this issue Jul 12, 2023 · 1 comment

Comments

@citrix123
Copy link

$ bloaty a.so_fix -- a.so
    FILE SIZE        VM SIZE
 --------------  --------------
  +219% +3.61Ki  [ = ]       0    [Unmapped]
  -0.7%     -24  -0.7%     -24    [3 Others]
   +91%     -32   +91%     -32    .plt.got
   +93%     -48   +93%     -48    .gnu.version_r
   +95%     -56   +95%     -56    .gnu.version
  +100%     -60  +100%     -60    .gcc_except_table
   +94%    -232   +94%    -232    .got.plt
   +84%    -288   +84%    -288    .got
   +94%    -464   +94%    -464    .plt
   +94%    -464   +94%    -464    .plt.sec
   +97%    -504   +97%    -504    .dynstr
   +94%    -696   +94%    -696    .rela.plt
   +95%    -720   +95%    -720    .dynsym
  [ = ]       0   +99% -10.6Ki    .bss
   +94% -13.9Ki   +94% -13.9Ki    .data
  +100% -62.5Ki  +100% -62.5Ki    .data.rel.ro
   +79%  -156Ki   +79%  -156Ki    .eh_frame_hdr
   +99%  -173Ki   +99%  -173Ki    .rela.dyn
   +99%  -479Ki   +99%  -479Ki    .rodata
   +80% -1011Ki   +80% -1011Ki    .eh_frame
   +82% -10.8Mi   +82% -10.8Mi    .text
   +90%  +117Mi   +90%  +118Mi    TOTAL

Why do we see + with percentage section and +90% +117Mi +90% +118Mi TOTAL

Ideally fix should show all on negatives. Please correct me if i am understanding it wrongly :)

@louwers
Copy link

louwers commented Sep 5, 2023

+90% means that original_size * 0.9 = new size.

#359

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

2 participants