Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-12-08 23:44:29

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(True))
0008     #Adding Timing service:
0009     process.Timing=cms.Service("Timing")
0010     
0011     #Add these 3 lines to put back the summary for timing information at the end of the logfile
0012     #(needed for TimeReport report)
0013     if hasattr(process,'options'):
0014         process.options.wantSummary = cms.untracked.bool(True)
0015     else:
0016         process.options = cms.untracked.PSet(
0017             wantSummary = cms.untracked.bool(True)
0018         )
0019 
0020     return(process)
0021 
0022 def customiseWithTimeMemoryInfo(process):
0023     return customise(process)