CMS 3D CMS Logo

TimeMemoryJobReport.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
3 
4  #Adding SimpleMemoryCheck service:
5  process.SimpleMemoryCheck=cms.Service("SimpleMemoryCheck",
6  ignoreTotal=cms.untracked.int32(1),
7  oncePerEventMode=cms.untracked.bool(False),
8  jobReportOutputOnly = cms.untracked.bool(True))
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(False)
18  else:
19  process.options = cms.untracked.PSet(
20  wantSummary = cms.untracked.bool(False)
21  )
22 
23  #Silence the final Timing service report
24  process.MessageLogger.cerr.TimeReport = cms.untracked.PSet(limit = cms.untracked.int32(0))
25 
26  return(process)
27 
return((rh ^ lh) &mask)
def customiseWithTimeMemoryJobReport(process)