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

ast-view?

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

something such as https://stackoverflow.com/questions/18560019/how-to-view-clang-ast#18589704

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: Nov 20 2019 at 11:50UTC