Definition at line 7 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 19 of file AtlRunQueryTimer.py.
19 def printRecursive(self, lvl):
20 from operator
import attrgetter
24 ts =
sum([x.totaltime
for x
in self.subcounts])
25 print (
"%s%-70s : %f (sub sum %f)" % (5*lvl*
" ", self.name, self.totaltime, ts))
27 print (
"%s%-70s : %f" % (5*lvl*
" ", self.name, self.totaltime))
29 sortedByTime =
sorted(self.subcounts,key=attrgetter(
'totaltime'),reverse=
True)
31 for subtc
in sortedByTime:
32 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: