CMS 3D CMS Logo

Functions

TimeMemoryInfo Namespace Reference

Functions

def customise

Function Documentation

def TimeMemoryInfo::customise (   process)

Definition at line 11 of file TimeMemoryInfo.py.

00012                       :
00013     #Adding SimpleMemoryCheck service:
00014     process.SimpleMemoryCheck=cms.Service("SimpleMemoryCheck",
00015                                           ignoreTotal=cms.untracked.int32(1),
00016                                           oncePerEventMode=cms.untracked.bool(True))
00017     #Adding Timing service:
00018     process.Timing=cms.Service("Timing")
00019     
00020     #Add these 3 lines to put back the summary for timing information at the end of the logfile
00021     #(needed for TimeReport report)
00022     process.options = cms.untracked.PSet(
00023         wantSummary = cms.untracked.bool(True)
00024         )
00025 
00026     #Add the configuration for the Igprof running to dump profile snapshots:
00027     process.IgProfService = cms.Service("IgProfService",
00028         reportFirstEvent            = cms.untracked.int32(1),  #Dump first event for baseline studies
00029         reportEventInterval         = cms.untracked.int32( ((process.maxEvents.input.value()-1)/2) ), # dump in the middle of the run
00030         reportToFileAtPostEvent     = cms.untracked.string("| gzip -c > IgProf.%I.gz")
00031         )
00032     
00033     return(process)