[LLVMdev] [PATCH] llvm-bcanalyzer: print percentages without scientific notation

Timo Juhani Lindfors timo.lindfors at iki.fi
Tue Sep 29 04:04:20 PDT 2009


Hello,

llvm-bcanalyzer told me that the size of the BLOCKINFO_BLOCK of my
file is "1.345017e+01" percent of the whole file. This is not very
readable.

The attached patch prints the percentage without scientific notation
so we get something bit more readable:

Block ID #0 (BLOCKINFO_BLOCK):
    Num Instances: 1
       Total Size: 637b/79.62B/19W
        % of file: 13.450169
    Num SubBlocks: 0
      Num Abbrevs: 0
      Num Records: 0


best regards,
Timo Lindfors


-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm-bcanalyzer-format-percentage1.patch
Type: text/x-diff
Size: 944 bytes
Desc: llvm-bcanalyzer: print percentages without scientific	notation
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090929/e2f663db/attachment.patch>


More information about the llvm-dev mailing list