/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
FastSimulation/Validation/test/checkTiming.sh
30 строк
1 KB
Christopher Jones
Update MessageLogger_cfi to new syntax
07 дек 2020, 21:37
07 дек 2020, 21:37
eb0725a
Код
Авторство
О чём код?
#!/bin/sh # First, enable timing report and message logger if [ -f $CMSSW_BASE/src/FastSimulation/Configuration/test/IntegrationTestWithHLT_cfg.py ] then cp $CMSSW_BASE/src/FastSimulation/Configuration/test/IntegrationTestWithHLT_cfg.py IntegrationTestWithHLTWithTiming_cfg.py echo "Taking IntegrationTestWithHLT_cfg.py from the local release area" else cp $CMSSW_RELEASE_BASE/src/FastSimulation/Configuration/test/IntegrationTestWithHLT_cfg.py IntegrationTestWithHLTWithTiming_cfg.py echo "Taking IntegrationTestWithHLT_cfg.py from the central release area" fi echo 'process.Timing = cms.Service("Timing")' >> IntegrationTestWithHLTWithTiming_cfg.py echo 'process.load("FWCore/MessageService/MessageLogger_cfi")' >> IntegrationTestWithHLTWithTiming_cfg.py echo 'process.MessageLogger.cerr.enable = False' >> IntegrationTestWithHLTWithTiming_cfg.py echo 'process.MessageLogger.files.pyDetailedInfo = dict(extension = "txt")' >> IntegrationTestWithHLTWithTiming_cfg.py # build the binary oval b #run and measure total fime /usr/bin/time -o timefrac -f'%P' oval run cmsRun.runWithTiming rm IntegrationTestWithHLTWithTiming_cfg.py # extract timing info grep "TimeModule>" pyDetailedInfo.txt > TimingInfo.txt # compile the executable timefraction=`sed -e 's/\%//' timefrac` $CMSSW_BASE/test/slc4_ia32_gcc345/timing -t $timefraction -n TimingInfo.txt -o > tmp_file grep -A 9999 "Timing per module" tmp_file | grep -B 9999 "Timing per label" | grep OVAL | sort -k 3