Public Member Functions | |
def | __init__ |
def | __str__ |
def | addChild |
def | childTicks |
def | parentTicks |
def | recurTicks |
Definition at line 39 of file prof2calltree.py.
def prof2calltree::Node::__init__ | ( | me, | ||
fid, | ||||
name | ||||
) |
Definition at line 40 of file prof2calltree.py.
00040 : 00041 me.fid = int(fid) 00042 me.name = name 00043 me.ticks_as_parent = 0 00044 me.ticks_as_child = 0 00045 me.ticks_as_parent_recur = 0 00046 me.calls = 0 00047 me.children = {} # set() - want to use set, but not until 2.4 00048 def parentTicks(me,count):
def prof2calltree::Node::__str__ | ( | me | ) |
Definition at line 63 of file prof2calltree.py.
00063 : 00064 return "(%d,%s,%d,%d,%s)"%(me.fid,me.name,me.ticks_as_parent,me.ticks_as_child,tostring(me.children.keys())) 00065 class EdgeCount:
def prof2calltree::Node::addChild | ( | me, | ||
child_id | ||||
) |
Definition at line 60 of file prof2calltree.py.
00060 : 00061 me.children[child_id]=0 # .add(child_id) -cannot use set functions yet 00062 def __str__(me):
def prof2calltree::Node::childTicks | ( | me, | ||
count | ||||
) |
Definition at line 52 of file prof2calltree.py.
00052 : 00053 c = int(count) 00054 me.ticks_as_parent += c 00055 me.ticks_as_child += c 00056 def recurTicks(me,count):
def prof2calltree::Node::parentTicks | ( | me, | ||
count | ||||
) |
Definition at line 49 of file prof2calltree.py.
00049 : 00050 me.ticks_as_parent += int(count) 00051 def childTicks(me,count):
def prof2calltree::Node::recurTicks | ( | me, | ||
count | ||||
) |