rustwasm / twiggy

Twiggy🌱 is a code size profiler
https://rustwasm.github.io/twiggy
Apache License 2.0
1.29k stars 69 forks source link

Support for more binary formats #4

Open fitzgen opened 6 years ago

fitzgen commented 6 years ago

We can use goblin to parse IR nodes, but parsing IR edges might be a little trickier. The DW_TAG_call_site 0 1 attribute, if present in the DWARF debugging information, could help. Otherwise, we'll need to disassemble instructions.

philipc commented 4 years ago

I've got some code in ddbug that uses capstone to disassemble instructions to find calls, and a copy in findpanics too. It's currently incomplete, but I'm working on updating it. Maybe I should put this in its own crate so that twiggy can use it too?

data-pup commented 4 years ago

@philipc that would be greatly appreciated! Thank you for offering :slightly_smiling_face: