Ticket #13 (new enhancement)
Retrieving edge pairs
| Reported by: | ero.carrera@… | Owned by: | gak |
|---|---|---|---|
| Priority: | major | Component: | general |
| Version: | Keywords: | ||
| Cc: |
Description (last modified by gak) (diff)
It would be great to be able to get the edges of the callgraph so that they can be processed with other tools. I've added the following function:
def get_calltree(stop=True):
"""Compiles the edges for the graph."""
edges = list()
if stop:
stop_trace()
for fr_key, fr_val in call_dict.items():
if fr_key == '':
continue
for to_key, to_val in fr_val.items():
edges.append((fr_key, to_key))
return edges
It would be great to have this functionality on pycallgraph, maybe expanded so that the node names include the call count and other statistics.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.