CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
prof2calltree.Node Class Reference

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.

40 
41  def __init__(me,fid,name):
42  me.fid = int(fid)
43  me.name = name
44  me.ticks_as_parent = 0
45  me.ticks_as_child = 0
46  me.ticks_as_parent_recur = 0
47  me.calls = 0
48  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.

References prof2calltree.tostring().

63 
64  def __str__(me):
65  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.

60 
61  def addChild(me,child_id):
62  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.

52 
53  def childTicks(me,count):
54  c = int(count)
55  me.ticks_as_parent += c
56  me.ticks_as_child += c
def prof2calltree.Node.parentTicks (   me,
  count 
)

Definition at line 49 of file prof2calltree.py.

49 
50  def parentTicks(me,count):
51  me.ticks_as_parent += int(count)
def prof2calltree.Node.recurTicks (   me,
  count 
)

Definition at line 57 of file prof2calltree.py.

57 
58  def recurTicks(me,count):
59  me.ticks_as_parent_recur += int(count)