CMS 3D CMS Logo

Public Member Functions

prof2calltree::Node Class Reference

List of all members.

Public Member Functions

def __init__
def __str__
def addChild
def childTicks
def parentTicks
def recurTicks

Detailed Description

Definition at line 39 of file prof2calltree.py.


Constructor & Destructor Documentation

def prof2calltree::Node::__init__ (   me,
  fid,
  name 
)

Definition at line 40 of file prof2calltree.py.

00041                              :
00042         me.fid = int(fid)
00043         me.name = name
00044         me.ticks_as_parent = 0
00045         me.ticks_as_child = 0
00046         me.ticks_as_parent_recur = 0
00047         me.calls = 0
00048         me.children = {} # set() - want to use set, but not until 2.4


Member Function Documentation

def prof2calltree::Node::__str__ (   me)

Definition at line 63 of file prof2calltree.py.

00064                    :
00065         return "(%d,%s,%d,%d,%s)"%(me.fid,me.name,me.ticks_as_parent,me.ticks_as_child,tostring(me.children.keys()))

def prof2calltree::Node::addChild (   me,
  child_id 
)

Definition at line 60 of file prof2calltree.py.

00061                              :
00062         me.children[child_id]=0  # .add(child_id) -cannot use set functions yet

def prof2calltree::Node::childTicks (   me,
  count 
)

Definition at line 52 of file prof2calltree.py.

00053                             :
00054         c = int(count)
00055         me.ticks_as_parent += c
00056         me.ticks_as_child += c
        
def prof2calltree::Node::parentTicks (   me,
  count 
)

Definition at line 49 of file prof2calltree.py.

00050                              :
00051         me.ticks_as_parent += int(count)
    
def prof2calltree::Node::recurTicks (   me,
  count 
)

Definition at line 57 of file prof2calltree.py.

00058                             :
00059         me.ticks_as_parent_recur += int(count)