Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/tools/cmd/godoc: improve recursive Internal call graph presentation #14240

Thomasdezeeuw opened this issue Feb 5, 2016 · 1 comment


None yet
3 participants
Copy link

commented Feb 5, 2016

What version of Go are you using (go version)?

N/A (go 1.5, go tip), using at fe74a4186116b8d7dd38a723993e0d84f8834b34.

What operating system and processor architecture are you using?

N/A (OS X 10.11.3)

What did you do?

Ran godoc -http :6060 -analysis type,pointer.

What did you see instead?

Running analyses on an recursive function creates a rather interesting call graph, see image below. Could there be a better way to display the call graph of recursive functions?

godoc example

Note: this has no priority, just creating an issue so it's not forgotten.


This comment has been minimized.

Copy link

commented Feb 10, 2016

This is working as intended; the unrolling of a cyclic graph is an infinite tree. I don't know of a better way to display an arbitrary cyclic graph; Sugiyama-style layouts do not scale beyond a few dozen nodes.

@golang golang locked and limited conversation to collaborators Feb 28, 2017

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.