@property
def execTime(self):
return self.endExecTime - self.startExecTime
+
+ @property
+ def fullExecTime(self):
+ return self.endOutputTime - self.startInputTime
@property
def startOutputTime(self):
def __str__(self):
CPUMemDuringExecForStr = self.CPUMemDuringExecStr
if len( CPUMemDuringExecForStr ) > 30:
- CPUMemDuringExecForStr = "{} ...".format( str(CPUMemDuringExecForStr) )
+ CPUMemDuringExecForStr = "{} ...".format( str(CPUMemDuringExecForStr[:30]) )
else:
CPUMemDuringExecForStr = str( CPUMemDuringExecForStr )
return """start exec time = {self.startExecTime}
@property
def execTime(self):
return self.get().execTime
+
+ @property
+ def fullExecTime(self):
+ return self.get().fullExecTime
@property
def startOutputTime(self):
def ListAllExecContainIn( listOfContainerLogInfo ):
"""
For all ContainerLogInfo contained in listOfContainerLogInfo extract all ScriptExecInfo contained recursively
- in it.
+ in it. This method filters all "side" executions like those positionning environment for exemple.
Args:
-----
list<ScriptExecInfoDeco> : all ScriptExecInfoDeco instance contained recursively in all input ContainerLogInfo instances
"""
- return sum( [sum( [[myexec for myexec in ps] for ps in cont],[] ) for cont in listOfContainerLogInfo], [] )
+ allexecs = sum( [sum( [[myexec for myexec in ps] for ps in cont],[] ) for cont in listOfContainerLogInfo], [] )
+ return [elt for elt in allexecs if elt.get() is not None]
def IsExecTimeHigherThan( execInstDeco, limitDuration ):
"""