Definition at line 8 of file AtlRunQueryTimer.py.
◆ __init__()
def python.utils.AtlRunQueryTimer.TimeCount.__init__ |
( |
|
self, |
|
|
|
name |
|
) |
| |
◆ __repr__()
def python.utils.AtlRunQueryTimer.TimeCount.__repr__ |
( |
|
self | ) |
|
◆ __str__()
def python.utils.AtlRunQueryTimer.TimeCount.__str__ |
( |
|
self | ) |
|
◆ printRecursive()
def python.utils.AtlRunQueryTimer.TimeCount.printRecursive |
( |
|
self, |
|
|
|
lvl |
|
) |
| |
Definition at line 20 of file AtlRunQueryTimer.py.
20 def printRecursive(self, lvl):
21 from operator
import attrgetter
25 ts =
sum([x.totaltime
for x
in self.subcounts])
26 print (
"%s%-70s : %f (sub sum %f)" % (5*lvl*
" ", self.name, self.totaltime, ts))
28 print (
"%s%-70s : %f" % (5*lvl*
" ", self.name, self.totaltime))
30 sortedByTime =
sorted(self.subcounts,key=attrgetter(
'totaltime'),reverse=
True)
32 for subtc
in sortedByTime:
33 subtc.printRecursive(lvl+1)
◆ name
python.utils.AtlRunQueryTimer.TimeCount.name |
◆ subcounts
python.utils.AtlRunQueryTimer.TimeCount.subcounts |
◆ totaltime
python.utils.AtlRunQueryTimer.TimeCount.totaltime |
The documentation for this class was generated from the following file: