Stream: general

Topic: Plot callgraphs from rustc

Luca Barbato (Nov 21 2018 at 23:03, on Zulip):

Is there already something that prints the callgraphs in something graphviz could consume?

oli (Nov 22 2018 at 07:24, on Zulip):

I don't think callgraphs are sth we have code to emit. Would be a nice feature of rustdoc though

Luca Barbato (Nov 22 2018 at 08:26, on Zulip):

do we have ast-view though?

oli (Nov 22 2018 at 08:39, on Zulip):


Luca Barbato (Nov 22 2018 at 10:47, on Zulip):

something such as

oli (Nov 22 2018 at 11:34, on Zulip):

I think an ast-view should be a stable tool built on top of syn, not some compiler-magic

oli (Nov 22 2018 at 11:35, on Zulip):

call graphs require more info, but it should be fairly simple to write a custom driver that dumps a .dot file for every function in a crate

Luca Barbato (Nov 22 2018 at 12:53, on Zulip):

Yes, I wouldn't want to duplicate effort and I hoped something would be available since everybody likes pretty graphs :)

Last update: Jul 16 2020 at 14:25UTC