Public Member Functions | |
def | __init__ |
def | add_function |
def | add_cycle |
def | validate |
def | find_cycles |
def | call_ratios |
def | integrate |
def | aggregate |
def | ratio |
def | prune |
def | dump |
Public Attributes | |
functions | |
cycles | |
Private Member Functions | |
def | _tarjan |
def | _integrate_function |
def | _integrate_call |
def | _integrate_cycle |
def | _rank_cycle_function |
def | _call_ratios_cycle |
def | _integrate_cycle_function |
def | _dump_events |
The whole profile.
Definition at line 219 of file gprof2dot.py.
def gprof2dot.Profile.__init__ | ( | self | ) |
Definition at line 222 of file gprof2dot.py.
def gprof2dot.Profile._call_ratios_cycle | ( | self, | |
cycle, | |||
function, | |||
ranks, | |||
call_ratios, | |||
visited | |||
) | [private] |
Definition at line 421 of file gprof2dot.py.
References gprof2dot.Profile._call_ratios_cycle(), gprof2dot.Cycle.functions, and gprof2dot.Profile.functions.
Referenced by gprof2dot.Profile._call_ratios_cycle(), and gprof2dot.Profile._integrate_cycle().
def gprof2dot.Profile._dump_events | ( | self, | |
events | |||
) | [private] |
Definition at line 533 of file gprof2dot.py.
Referenced by gprof2dot.Profile.dump().
def gprof2dot.Profile._integrate_call | ( | self, | |
call, | |||
outevent, | |||
inevent | |||
) | [private] |
Definition at line 368 of file gprof2dot.py.
References gprof2dot.Profile._integrate_function(), gprof2dot.Cycle.functions, and gprof2dot.Profile.functions.
Referenced by gprof2dot.Profile._integrate_cycle(), and gprof2dot.Profile._integrate_function().
def gprof2dot.Profile._integrate_cycle | ( | self, | |
cycle, | |||
outevent, | |||
inevent | |||
) | [private] |
Definition at line 376 of file gprof2dot.py.
References gprof2dot.Profile._call_ratios_cycle(), gprof2dot.Profile._integrate_call(), gprof2dot.Profile._integrate_cycle_function(), gprof2dot.Profile._rank_cycle_function(), gprof2dot.Cycle.functions, gprof2dot.Profile.functions, and irc_cs_task_regression.max.
Referenced by gprof2dot.Profile._integrate_function().
def gprof2dot.Profile._integrate_cycle_function | ( | self, | |
cycle, | |||
function, | |||
partial_ratio, | |||
partials, | |||
ranks, | |||
call_ratios, | |||
outevent, | |||
inevent | |||
) | [private] |
Definition at line 432 of file gprof2dot.py.
References gprof2dot.Profile._integrate_cycle_function(), gprof2dot.Cycle.functions, gprof2dot.Profile.functions, and gprof2dot.Profile.ratio().
Referenced by gprof2dot.Profile._integrate_cycle(), and gprof2dot.Profile._integrate_cycle_function().
def gprof2dot.Profile._integrate_function | ( | self, | |
function, | |||
outevent, | |||
inevent | |||
) | [private] |
Definition at line 356 of file gprof2dot.py.
References gprof2dot.Profile._integrate_call(), and gprof2dot.Profile._integrate_cycle().
Referenced by gprof2dot.Profile._integrate_call(), and gprof2dot.Profile.integrate().
def gprof2dot.Profile._rank_cycle_function | ( | self, | |
cycle, | |||
function, | |||
rank, | |||
ranks | |||
) | [private] |
Definition at line 412 of file gprof2dot.py.
References gprof2dot.Profile._rank_cycle_function(), gprof2dot.Cycle.functions, and gprof2dot.Profile.functions.
Referenced by gprof2dot.Profile._integrate_cycle(), and gprof2dot.Profile._rank_cycle_function().
def gprof2dot.Profile._tarjan | ( | self, | |
function, | |||
order, | |||
stack, | |||
orders, | |||
lowlinks, | |||
visited | |||
) | [private] |
Tarjan's strongly connected components algorithm. See also: - http://en.wikipedia.org/wiki/Tarjan's_strongly_connected_components_algorithm
Definition at line 264 of file gprof2dot.py.
References gprof2dot.Profile._tarjan(), gprof2dot.Cycle.functions, and gprof2dot.Profile.functions.
Referenced by gprof2dot.Profile._tarjan(), and gprof2dot.Profile.find_cycles().
def gprof2dot.Profile.add_cycle | ( | self, | |
cycle | |||
) |
Definition at line 232 of file gprof2dot.py.
def gprof2dot.Profile.add_function | ( | self, | |
function | |||
) |
Definition at line 227 of file gprof2dot.py.
References gprof2dot.Cycle.functions, and gprof2dot.Profile.functions.
def gprof2dot.Profile.aggregate | ( | self, | |
event | |||
) |
Aggregate an event for the whole profile.
Definition at line 458 of file gprof2dot.py.
def gprof2dot.Profile.call_ratios | ( | self, | |
event | |||
) |
Definition at line 295 of file gprof2dot.py.
References gprof2dot.Profile.cycles, gprof2dot.Cycle.functions, gprof2dot.Profile.functions, and gprof2dot.Profile.ratio().
def gprof2dot.Profile.dump | ( | self | ) |
Definition at line 524 of file gprof2dot.py.
References gprof2dot.Profile._dump_events(), gprof2dot.Cycle.functions, and gprof2dot.Profile.functions.
def gprof2dot.Profile.find_cycles | ( | self | ) |
Find cycles using Tarjan's strongly connected components algorithm.
Definition at line 245 of file gprof2dot.py.
References gprof2dot.Profile._tarjan(), and gprof2dot.Profile.cycles.
def gprof2dot.Profile.integrate | ( | self, | |
outevent, | |||
inevent | |||
) |
Propagate function time ratio allong the function calls. Must be called after finding the cycles. See also: - http://citeseer.ist.psu.edu/graham82gprof.html
Definition at line 323 of file gprof2dot.py.
References gprof2dot.Profile._integrate_function(), and gprof2dot.Profile.cycles.
def gprof2dot.Profile.prune | ( | self, | |
node_thres, | |||
edge_thres | |||
) |
Prune the profile
Definition at line 482 of file gprof2dot.py.
References gprof2dot.Cycle.functions, and gprof2dot.Profile.functions.
def gprof2dot.Profile.ratio | ( | self, | |
outevent, | |||
inevent | |||
) |
Definition at line 469 of file gprof2dot.py.
Referenced by gprof2dot.Profile._integrate_cycle_function(), and gprof2dot.Profile.call_ratios().
def gprof2dot.Profile.validate | ( | self | ) |
Validate the edges.
Definition at line 235 of file gprof2dot.py.
References gprof2dot.Cycle.functions, and gprof2dot.Profile.functions.
Definition at line 225 of file gprof2dot.py.
Referenced by gprof2dot.Profile.call_ratios(), gprof2dot.Profile.find_cycles(), gprof2dot.Profile.integrate(), and gprof2dot.GprofParser.parse_cycle_entry().
Definition at line 224 of file gprof2dot.py.
Referenced by gprof2dot.Profile._call_ratios_cycle(), gprof2dot.Profile._integrate_call(), gprof2dot.Profile._integrate_cycle(), gprof2dot.Profile._integrate_cycle_function(), gprof2dot.Profile._rank_cycle_function(), gprof2dot.Profile._tarjan(), gprof2dot.Profile.add_function(), gprof2dot.Profile.call_ratios(), gprof2dot.Profile.dump(), gprof2dot.GprofParser.parse(), gprof2dot.GprofParser.parse_function_entry(), gprof2dot.Profile.prune(), and gprof2dot.Profile.validate().