casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables
Public Member Functions | Public Attributes | Private Member Functions
gprof2dot.Profile Class Reference
Inheritance diagram for gprof2dot.Profile:
gprof2dot.Object

List of all members.

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

Detailed Description

The whole profile.

Definition at line 219 of file gprof2dot.py.


Constructor & Destructor Documentation

Definition at line 222 of file gprof2dot.py.


Member Function Documentation

def gprof2dot.Profile._call_ratios_cycle (   self,
  cycle,
  function,
  ranks,
  call_ratios,
  visited 
) [private]
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]
def gprof2dot.Profile._integrate_cycle (   self,
  cycle,
  outevent,
  inevent 
) [private]
def gprof2dot.Profile._integrate_cycle_function (   self,
  cycle,
  function,
  partial_ratio,
  partials,
  ranks,
  call_ratios,
  outevent,
  inevent 
) [private]
def gprof2dot.Profile._integrate_function (   self,
  function,
  outevent,
  inevent 
) [private]
def gprof2dot.Profile._rank_cycle_function (   self,
  cycle,
  function,
  rank,
  ranks 
) [private]
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 
)
def gprof2dot.Profile.dump (   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 
)
Validate the edges.

Definition at line 235 of file gprof2dot.py.

References gprof2dot.Cycle.functions, and gprof2dot.Profile.functions.


Member Data Documentation


The documentation for this class was generated from the following file: