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 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

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.

Laurențiu Nicola (Feb 18 2020 at 09:40, on Zulip):

Hi! I have a profile where a couple of CGUs seem to take a lot of time to ThinLTO (there's a 21s one). I suppose there's no much to do it, but does anyone want to take a look? I haven't seen many of these profiles, so perhaps there's something interesting in there. I uploaded it to The link expires in 7 days, but I can upload it again after that.

mw (Feb 20 2020 at 11:34, on Zulip):

@Alex Crichton this should work now with -Z self-profile -Z self-profile-events=default,function-args.

mw (Feb 20 2020 at 11:35, on Zulip):

you can also do -Z self-profile -Z self-profile-events=default,args. That will give you query-keys too.

Alex Crichton (Feb 20 2020 at 14:53, on Zulip):

@mw nice!

mw (Feb 20 2020 at 14:54, on Zulip):

Let me know if you see things showing up as <unknown> in the output. I think there might be a bug somewhere. At least I've seen two separate reports so far.

Last update: Jul 02 2020 at 19:45UTC