Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:32:56

0001 import FWCore.ParameterSet.Config as cms
0002 def customiseWithTimeMemoryJobReport(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                                           jobReportOutputOnly = cms.untracked.bool(True))
0009     #Adding Timing service:
0010     process.Timing=cms.Service("Timing",
0011                                summaryOnly=cms.untracked.bool(True),
0012                                excessiveTimeThreshold=cms.untracked.double(600))
0013     
0014     #Add these 3 lines to put back the summary for timing information at the end of the logfile
0015     #(needed for TimeReport report)
0016     if hasattr(process,"options"):
0017         process.options.wantSummary = cms.untracked.bool(False)
0018     else:
0019         process.options = cms.untracked.PSet(
0020             wantSummary = cms.untracked.bool(False)
0021             )
0022 
0023     #Silence the final Timing service report
0024     process.MessageLogger.cerr.TimeReport = cms.untracked.PSet(limit = cms.untracked.int32(0))
0025 
0026     return(process)
0027