CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
TimeMemorySummary Namespace Reference

Functions

def customise
 
def customiseWithTimeMemorySummary
 

Function Documentation

def TimeMemorySummary.customise (   process)

Definition at line 2 of file TimeMemorySummary.py.

References gpuVertexFinder.return.

2 
3 def customise(process):
4 
5  #Adding SimpleMemoryCheck service:
6  process.SimpleMemoryCheck=cms.Service("SimpleMemoryCheck",
7  ignoreTotal=cms.untracked.int32(1),
8  oncePerEventMode=cms.untracked.bool(False))
9  #Adding Timing service:
10  process.Timing=cms.Service("Timing",
11  summaryOnly=cms.untracked.bool(True),
12  excessiveTimeThreshold=cms.untracked.double(600))
13 
14  #Add these 3 lines to put back the summary for timing information at the end of the logfile
15  #(needed for TimeReport report)
16  if hasattr(process,"options"):
17  process.options.wantSummary = cms.untracked.bool(True)
18  else:
19  process.options = cms.untracked.PSet(
20  wantSummary = cms.untracked.bool(True)
21  )
22 
23  return(process)
def TimeMemorySummary.customiseWithTimeMemorySummary (   process)

Definition at line 24 of file TimeMemorySummary.py.

24 
26  return customise(process)