I'm using Pycallgraph to generate output, but I want to save the intermediate graphd output (instead of generating an image) because I want to make some small modifications to it.
I'm running as:
PYTHONPATH=. pycallgraph -d graphviz -- ./ab_ndh_graph.py > out.graphd
Which is generating 2x things:
- pycallgraph.png -- this is the entire call graph (graphd output in out.graphd)
- filter_max_depth.png -- this is the code based call graph (correct, but no graphd output)
How can I get the graphd output to be generated for "filter_max_depth" instead?
File contents:
config = Config(max_depth=2)
config.trace_filter = GlobbingFilter(exclude=[
'pycallgraph.*',
])
graphviz = GraphvizOutput(output_file='filter_max_depth.png')
with PyCallGraph(output=graphviz, config=config):
o = AB_NDH()
o.run()