CMS 3D CMS Logo

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