Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:33:24

0001 import FWCore.ParameterSet.Config as cms
0002 def customise(process):
0003 
0004     #Adding SimpleMemoryCheck service:
0005     process.SimpleMemoryCheck=cms.Service("SimpleMemoryCheck",
0006                                           ignoreTotal=cms.untracked.int32(1),
0007                                           oncePerEventMode=cms.untracked.bool(False))
0008     #Adding Timing service:
0009     process.Timing=cms.Service("Timing",
0010                                summaryOnly=cms.untracked.bool(True),
0011                                excessiveTimeThreshold=cms.untracked.double(600))
0012     
0013     #Add these 3 lines to put back the summary for timing information at the end of the logfile
0014     #(needed for TimeReport report)
0015     if hasattr(process,"options"):
0016         process.options.wantSummary = cms.untracked.bool(True)
0017     else:
0018         process.options = cms.untracked.PSet(
0019             wantSummary = cms.untracked.bool(True)
0020             )
0021 
0022     return(process)
0023 
0024 def customiseWithTimeMemorySummary(process):
0025     return customise(process)