Stream: t-compiler/wg-self-profile

Topic: crox graphs to LLVM CGU?


Alex Crichton (Jan 11 2020 at 00:01, on Zulip):

I was recently poking around at https://github.com/bytecodealliance/cranelift/issues/1318 and it was a case where the crox graphs in Chrome clearly showed that one CGU was massively slower compared to the rest, and I was curious to try to dig into the CGU and see what functions were inside there to translate it to source. I ended up finding a bit of a roundabout method to do it but was curious, is there a better way nowadays to correlate CGUs in cros with actual bitcode files?

andjo403 (Jan 11 2020 at 00:16, on Zulip):

Last time that I was looking at some thing like this I used the debug traces that I have updated in https://github.com/rust-lang/rust/pull/65175

andjo403 (Jan 11 2020 at 00:18, on Zulip):

Do not think that there is any way to get that from crox logs

Zoxc (Jan 11 2020 at 00:19, on Zulip):

Is that an incremental build? If so that would explain why CGUs are unbalanced

mw (Jan 13 2020 at 09:15, on Zulip):

I hope I'll get around to adding support for CGU names some time this week.

Last update: Jan 28 2020 at 01:00UTC