-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
Add sorting on totals #10
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
src/main.rs
Outdated
bin: Option<String>, | ||
|
||
/// Set the sort order to number of instantiations | ||
#[structopt(short = "i", long = "sort-insts")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please pick a different name for this flag. "Inst" commonly stands for "instruction" not "instantiation", especially in the context of LLVM. For example InstCombine
, MCInst
, RISCVInstPrinter
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, any suggestions? I have very little opinion on this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bloaty has a -s <sortby>
flag which seems reasonable to me. In our case it could be -s lines
(the default) or -s copies
with long equivalents --sort=lines
and --sort=copies
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed it to that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nicely done, thank you.
I published 0.1.4 with this flag. |
Should fix #1
Also switched to structopt for commandline parsing and ran the formatter