bradleyjkemp / memviz

Visualize your Go data structures using graphviz

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Depth limit

bradleyjkemp opened this issue · comments

Expected Behavior

Be able to limit the depth to which memviz maps a structure

Actual Behavior

memviz follows pointers arbitrarily far, even if the information I want is actually near the top of the graph.

Example input

Support a MaxDepth option like so:
memviz.Config.MaxDepth = 10

Dependent on #25