CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
TimeMemoryJobReport Namespace Reference

Functions

def customiseWithTimeMemoryJobReport
 

Function Documentation

def TimeMemoryJobReport.customiseWithTimeMemoryJobReport (   process)

Definition at line 2 of file TimeMemoryJobReport.py.

References gpuVertexFinder.return.

2 
4 
5  #Adding SimpleMemoryCheck service:
6  process.SimpleMemoryCheck=cms.Service("SimpleMemoryCheck",
7  ignoreTotal=cms.untracked.int32(1),
8  oncePerEventMode=cms.untracked.bool(False),
9  jobReportOutputOnly = cms.untracked.bool(True))
10  #Adding Timing service:
11  process.Timing=cms.Service("Timing",
12  summaryOnly=cms.untracked.bool(True),
13  excessiveTimeThreshold=cms.untracked.double(600))
14 
15  #Add these 3 lines to put back the summary for timing information at the end of the logfile
16  #(needed for TimeReport report)
17  if hasattr(process,"options"):
18  process.options.wantSummary = cms.untracked.bool(False)
19  else:
20  process.options = cms.untracked.PSet(
21  wantSummary = cms.untracked.bool(False)
22  )
23 
24  #Silence the final Timing service report
25  process.MessageLogger.cerr.TimeReport = cms.untracked.PSet(limit = cms.untracked.int32(0))
26 
27  return(process)
28