Version: 9.15.0
SALOME_ContainerHelper Namespace Reference

Data Structures

class  ScriptExecInfo
 
class  ScriptExecInfoDeco
 
class  ScriptInfoAbstract
 
class  ScriptInfoClt
 
class  ScriptInfo
 
class  ScriptInfoDeco
 
class  ContainerLogInfoAbstract
 
class  ContainerLogInfoClt
 
class  ContainerLogInfo
 
class  InOutputObjVisitorAbstract
 
class  InOutputObjVisitorIter
 
class  InOutputObjVisitor
 
class  ObjMemModel
 
class  FakeObjVisitor
 
class  InOutputObjVisitorCM
 
class  OffsetType
 
class  DistriutionClass
 
class  DistributionOfExecs
 

Functions

def unserializeInt (structData, offset)
 
def unserializeString (structData, offset)
 
def unserializeContainerScriptExecPerfLog (structData, offset)
 
def unserializeContainerScriptPerfLog (structData, offset)
 
def unserializeContainerPerfLog (structData, offset)
 
def unserializeLogManager (structData)
 
def ListAllExecContainIn (listOfContainerLogInfo)
 
def ListAllExecFinishedContainIn (listOfContainerLogInfo)
 
def IsExecTimeHigherThan (execInstDeco, limitDuration)
 
def GetMaxTimeExec (listOfFinishedExecs)
 
def GetMinTimeExec (listOfFinishedExecs)
 

Function Documentation

◆ GetMaxTimeExec()

def SALOME_ContainerHelper.GetMaxTimeExec (   listOfFinishedExecs)
Returns the instance among listOfFinishedExecs that spends the max time to be executed

Args:
-----

listOfFinishedExecs ( list<ScriptExecInfoDeco> ) : instance of ScriptExecInfoDeco that have finished to be executed
Typically returned by ListAllExecFinishedContainIn

Returns
-------

ScriptExecInfoDeco :

Referenced by SALOME_ContainerHelper.DistributionOfExecs.ComputeDistributionOfExecTime().

◆ GetMinTimeExec()

def SALOME_ContainerHelper.GetMinTimeExec (   listOfFinishedExecs)
Returns the instance among listOfFinishedExecs that spends the min time to be executed

Args:
-----

listOfFinishedExecs ( list<ScriptExecInfoDeco> ) : instance of ScriptExecInfoDeco that have finished to be executed
Typically returned by ListAllExecFinishedContainIn

Returns
-------

ScriptExecInfoDeco :

Referenced by SALOME_ContainerHelper.DistributionOfExecs.ComputeDistributionOfExecTime().

◆ IsExecTimeHigherThan()

def SALOME_ContainerHelper.IsExecTimeHigherThan (   execInstDeco,
  limitDuration 
)
Example of Usage :

[elt for elt in allexecs if IsExecTimeHigherThan(elt,datetime.timedelta(hours=1))]

Args:
-----

execInstDeco (ScriptExecInfoDeco)
limitDuration (datetime.timedelta)  Ex (datetime.timedelta(hours=1))

◆ ListAllExecContainIn()

def SALOME_ContainerHelper.ListAllExecContainIn (   listOfContainerLogInfo)
For all ContainerLogInfo contained in listOfContainerLogInfo extract all ScriptExecInfo contained recursively
in it. This method filters all "side" executions like those positionning environment for exemple.

See also : ListAllExecFinishedContainIn

Args:
-----

listOfContainerLogInfo (list<ContainerLogInfo>) : instance typically returned by salome.LogManagerLoadFromFile

Returns
-------

list<ScriptExecInfoDeco> : all ScriptExecInfoDeco instance contained recursively in all input ContainerLogInfo instances

Referenced by ListAllExecFinishedContainIn().

◆ ListAllExecFinishedContainIn()

def SALOME_ContainerHelper.ListAllExecFinishedContainIn (   listOfContainerLogInfo)
For all ContainerLogInfo contained in listOfContainerLogInfo extract all ScriptExecInfo contained recursively
in it. This method filters all "side" executions like those positionning environment for exemple and those not finished.

See also : ListAllExecContainIn

Args:
-----

listOfContainerLogInfo (list<ContainerLogInfo>) : instance typically returned by salome.LogManagerLoadFromFile

Returns
-------

list<ScriptExecInfoDeco> : all ScriptExecInfoDeco instance contained recursively in all input ContainerLogInfo instances

References ListAllExecContainIn().

◆ unserializeContainerPerfLog()

def SALOME_ContainerHelper.unserializeContainerPerfLog (   structData,
  offset 
)

◆ unserializeContainerScriptExecPerfLog()

def SALOME_ContainerHelper.unserializeContainerScriptExecPerfLog (   structData,
  offset 
)

◆ unserializeContainerScriptPerfLog()

def SALOME_ContainerHelper.unserializeContainerScriptPerfLog (   structData,
  offset 
)

◆ unserializeInt()

def SALOME_ContainerHelper.unserializeInt (   structData,
  offset 
)

◆ unserializeLogManager()

def SALOME_ContainerHelper.unserializeLogManager (   structData)

◆ unserializeString()

def SALOME_ContainerHelper.unserializeString (   structData,
  offset 
)