Stream: t-compiler

Topic: call graph


blitzerr (Jan 03 2019 at 04:49, on Zulip):

Is there a way to generate a call graph for rustc or even better is there such a thing already online that can be navigated online ?

pnkfelix (Jan 29 2019 at 11:13, on Zulip):

I'd love to know about what has been done here.

pnkfelix (Jan 29 2019 at 11:13, on Zulip):

(if anything)

pnkfelix (Jan 29 2019 at 11:13, on Zulip):

It seems like something that we could/should provide support for

nagisa (Jan 29 2019 at 11:14, on Zulip):

inlining needs call graph to work, so I would assume that it has its own implementation for that. And then there’s this monomorphisation collector thing, which technically traverses the call graph to find the necessary monomorphisations

nagisa (Jan 29 2019 at 11:14, on Zulip):

Not aware of anything that would be frameworky, but the same holds for e.g. dataflow.

oli (Jan 29 2019 at 11:34, on Zulip):

japaric wrote https://github.com/japaric/cargo-call-stack maybe we can use that?

oli (Jan 29 2019 at 11:35, on Zulip):

I've also wondered if it would make sense to add a list of functions called by and calling the current function to rustdoc

davidtwco (Jan 29 2019 at 11:36, on Zulip):

I've also wondered if it would make sense to add a list of functions called by and calling the current function to rustdoc

This could be super useful.

Jake Goulding (Jan 30 2019 at 15:57, on Zulip):

useful, yes but it seems like it's very likely to bloat the docs even more. Iterator docs already take 15s:

pasted image

QuietMisdreavus (Jan 30 2019 at 16:00, on Zulip):

tbh, i'm not totally sure how you could lay out such a "list of functions that call this" in the docs without it becoming absolutely huge, especially in the standard library

QuietMisdreavus (Jan 30 2019 at 16:01, on Zulip):

plus, as shep referenced, we need to work to take information out of the page for Iterator, not add more >_>

oli (Jan 30 2019 at 16:10, on Zulip):

There's no need to display everything on the main landing page of any type/trait/function/whatever

oli (Jan 30 2019 at 16:10, on Zulip):

maybe we should just start splitting things out into linked pages

oli (Jan 30 2019 at 16:10, on Zulip):

E.g. I rarely look at "types that implement this trait"

Jake Goulding (Jan 30 2019 at 20:47, on Zulip):

Next you are going to say that pagination can also fix the problem of too much data on one page...

Last update: Nov 22 2019 at 04:30UTC