Skip to content

Produce graph from union of two roots? #53

@ian-bertolacci

Description

@ian-bertolacci

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions