/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Validation/Performance/python/TimeMemorySummary.py
25 строк
1004 B
Patrick Gartung
updates suggested by Chris
26 июн 2017, 18:41
26 июн 2017, 18:41
7511b9a
Код
Авторство
О чём код?
import FWCore.ParameterSet.Config as cms def customise(process): #Adding SimpleMemoryCheck service: process.SimpleMemoryCheck=cms.Service("SimpleMemoryCheck", ignoreTotal=cms.untracked.int32(1), oncePerEventMode=cms.untracked.bool(False)) #Adding Timing service: process.Timing=cms.Service("Timing", summaryOnly=cms.untracked.bool(True), excessiveTimeThreshold=cms.untracked.double(600)) #Add these 3 lines to put back the summary for timing information at the end of the logfile #(needed for TimeReport report) if hasattr(process,"options"): process.options.wantSummary = cms.untracked.bool(True) else: process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) ) return(process) def customiseWithTimeMemorySummary(process): return customise(process)