Sections
Timeline
Browse Source
New Ticket
Sub-Sections
Download
Comma-delimited Text
Tab-delimited Text
RSS Feed
Metanav
Preferences
About Trac
Links
Slowchop Studios
Gerald Kaszuba
Advertisement

Ticket #13 (new enhancement)

Opened 14 months ago

Last modified 7 weeks ago

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

Changed 7 weeks ago by gak

  • description modified (diff)

Add/Change #13 (Retrieving edge pairs)

Author



Change Properties
<Author field>
Action
as new
 
Note: See TracTickets for help on using tickets.