CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
edmTracerCompactLogViewer.PreFrameworkTransitionParser Class Reference
Inheritance diagram for edmTracerCompactLogViewer.PreFrameworkTransitionParser:
edmTracerCompactLogViewer.FrameworkTransitionParser

Public Member Functions

def __init__ (self, payload)
 
def jsonInfo (self, counter, data)
 
def textSpecial (self)
 
- Public Member Functions inherited from edmTracerCompactLogViewer.FrameworkTransitionParser
def __init__ (self, payload)
 
def indentLevel (self)
 
def syncText (self)
 
def text (self, context)
 
def textPostfix (self)
 
def textPrefix (self)
 

Public Attributes

 transition
 
- Public Attributes inherited from edmTracerCompactLogViewer.FrameworkTransitionParser
 index
 
 sync
 
 time
 
 transition
 

Detailed Description

Definition at line 255 of file edmTracerCompactLogViewer.py.

Constructor & Destructor Documentation

◆ __init__()

def edmTracerCompactLogViewer.PreFrameworkTransitionParser.__init__ (   self,
  payload 
)

Definition at line 256 of file edmTracerCompactLogViewer.py.

256  def __init__(self, payload):
257  super().__init__(payload)
def __init__(self, dataset, job_number, job_id, job_name, isDA, isMC, applyBOWS, applyEXTRACOND, extraconditions, runboundary, lumilist, intlumi, maxevents, gt, allFromGT, alignmentDB, alignmentTAG, apeDB, apeTAG, bowDB, bowTAG, vertextype, tracktype, refittertype, ttrhtype, applyruncontrol, ptcut, CMSSW_dir, the_dir)

Member Function Documentation

◆ jsonInfo()

def edmTracerCompactLogViewer.PreFrameworkTransitionParser.jsonInfo (   self,
  counter,
  data 
)

Definition at line 260 of file edmTracerCompactLogViewer.py.

References edmTracerCompactLogViewer.FrameworkTransitionParser.transition, and edmTracerCompactLogViewer.transitionIsGlobal().

260  def jsonInfo(self, counter, data):
261  if transitionIsGlobal(self.transition):
262  index = 0
263  if self.transition == Phase.startTracing:
264  data.indexedGlobal(0).append(jsonTransition(type=self.transition, id=index, sync=list(self.sync),start=0, finish=self.time ))
265  return
266  elif self.transition == Phase.esSync:
267  if self.sync[1] == kLargestLumiNumber:
268  #at end run transition
269  index = findMatchingTransition(list(self.sync), data.allGlobals())
270  container = data.indexedGlobal(index)
271  container[-1]["finish"] = self.time*kMicroToSec
272  else:
273  data._queued[-1]["finish"] = self.time*kMicroToSec
274  data._queued.append( jsonTransition(type=self.transition, id = index, sync=list(self.sync), start=self.time , finish=0))
275  return
276  elif self.transition==Phase.globalBeginRun:
277  index = self.index
278  #find associated es queued items
279  queued = data._queued
280  q = popQueuedTransitions(list(self.sync), queued)
281  container = data.indexedGlobal(index)
282  #find source, should be previous
283  last = container[-1]
284  if last["type"]==Phase.globalBeginRun and last["isSrc"]:
285  last["sync"]=list(self.sync)
286  container.append(q[0])
287  container.append(q[1])
288  elif self.transition==Phase.globalBeginLumi:
289  index = self.index
290  #find associated es queued items
291  queued = data._queued
292  q = popQueuedTransitions(list(self.sync), queued)
293  container = data.indexedGlobal(index)
294  #find source, should be previous
295  last = container[-1]
296  if last["type"]==Phase.globalBeginLumi and last["isSrc"]:
297  last["sync"]=list(self.sync)
298  container.append(q[0])
299  container.append(q[1])
300  elif self.transition in transitionsToFindMatch_:
301  index = findMatchingTransition(list(self.sync), data.allGlobals())
302  container = data.indexedGlobal(index)
303  else:
304  container = data.indexedStream(self.index)
305  if self.transition == Phase.Event:
306  #find source, should be previous
307  last = container[-1]
308  if last["type"]==Phase.Event and last["isSrc"]:
309  last["sync"]=list(self.sync)
310  index = self.index
311  container.append( jsonTransition(type=self.transition, id = index, sync=list(self.sync), start=self.time , finish=0))
312 
313 
def jsonTransition(type, id, sync, start, finish, isSrc=False)
def findMatchingTransition(sync, containers)
def popQueuedTransitions(sync, container)

◆ textSpecial()

def edmTracerCompactLogViewer.PreFrameworkTransitionParser.textSpecial (   self)

Definition at line 258 of file edmTracerCompactLogViewer.py.

258  def textSpecial(self):
259  return "starting"

Member Data Documentation

◆ transition

edmTracerCompactLogViewer.PreFrameworkTransitionParser.transition

Definition at line 263 of file edmTracerCompactLogViewer.py.

Referenced by edmModuleAllocMonitorAnalyze.ModuleData.__repr__(), edmTracerCompactLogViewer.EDModuleTransitionParser._postJson(), edmTracerCompactLogViewer.ESModuleTransitionParser._postJson(), edmModuleAllocMonitorAnalyze.EDModuleTransitionParser._postJsonInfo(), edmModuleAllocMonitorAnalyze.ESModuleTransitionParser._postJsonInfo(), edmModuleAllocMonitorAnalyze.EDModuleTransitionParser._postJsonVis(), edmModuleAllocMonitorAnalyze.ESModuleTransitionParser._postJsonVis(), edmTracerCompactLogViewer.EDModuleTransitionParser._preJson(), edmTracerCompactLogViewer.ESModuleTransitionParser._preJson(), edmModuleAllocMonitorAnalyze.EDModuleTransitionParser._preJsonInfo(), edmModuleAllocMonitorAnalyze.ESModuleTransitionParser._preJsonInfo(), edmModuleAllocMonitorAnalyze.EDModuleTransitionParser._preJsonVis(), edmModuleAllocMonitorAnalyze.ESModuleTransitionParser._preJsonVis(), edmTracerCompactLogViewer.EDModuleTransitionParser.baseIndentLevel(), edmTracerCompactLogViewer.ESModuleTransitionParser.baseIndentLevel(), edmModuleAllocMonitorAnalyze.EDModuleTransitionParser.baseIndentLevel(), edmModuleAllocMonitorAnalyze.ESModuleTransitionParser.baseIndentLevel(), edmTracerCompactLogViewer.SourceTransitionParser.indentLevel(), edmModuleAllocMonitorAnalyze.FrameworkTransitionParser.indentLevel(), edmModuleAllocMonitorAnalyze.SourceTransitionParser.indentLevel(), edmModuleAllocMonitorAnalyze.PostFrameworkTransitionParser.jsonInfo(), edmModuleAllocMonitorAnalyze.PreSourceTransitionParser.jsonInfo(), edmTracerCompactLogViewer.PostEDModulePrefetchingParser.jsonInfo(), edmTracerCompactLogViewer.PostEDModuleAcquireParser.jsonInfo(), edmModuleAllocMonitorAnalyze.PostSourceTransitionParser.jsonInfo(), edmModuleAllocMonitorAnalyze.PreEventReadFromSourceParser.jsonInfo(), edmModuleAllocMonitorAnalyze.PostEventReadFromSourceParser.jsonInfo(), edmModuleAllocMonitorAnalyze.PreFrameworkTransitionParser.jsonVisInfo(), edmModuleAllocMonitorAnalyze.PostFrameworkTransitionParser.jsonVisInfo(), edmModuleAllocMonitorAnalyze.PostEDModuleAcquireParser.jsonVisInfo(), edmModuleAllocMonitorAnalyze.FrameworkTransitionParser.syncText(), edmTracerCompactLogViewer.EDModuleTransitionParser.textPrefix(), edmTracerCompactLogViewer.ESModuleTransitionParser.textPrefix(), edmModuleAllocMonitorAnalyze.EDModuleTransitionParser.textPrefix(), edmModuleAllocMonitorAnalyze.ESModuleTransitionParser.textPrefix(), and edmModuleAllocMonitorAnalyze.ModuleData.toSimpleDict().