-
Notifications
You must be signed in to change notification settings - Fork 395
Description
I have portion of a call graph that is defined by the union of two functions' call graphs.
For example:
foo():
bar()
baz()
asdf():
fn1234()
bar()
fn9321()
Is there a way to get a call graph of only this region?
Ideally, Id list a few functions I was interested in seeing, and a 'reach' and it would give the graph of all those functions, plus functions connected to them by at most 'reach' distance away in both the ancestors and descendants directions.
I dont think I can do this with the root/leaves since neither accept multiple arguments and specifying a function as both a root and leaf gives a graph of exactly that node.
I'm currently doing this by producing a limited call graph from these two functions as roots, then manually combining the two.
I'd be willing to write it myself and back contribute if you pointed me in the right direction.