File indexing completed on 2024-04-06 12:11:26
0001
0002
0003
0004 if [ -f $CMSSW_BASE/src/FastSimulation/Configuration/test/IntegrationTestWithHLT_cfg.py ]
0005 then
0006 cp $CMSSW_BASE/src/FastSimulation/Configuration/test/IntegrationTestWithHLT_cfg.py IntegrationTestWithHLTWithTiming_cfg.py
0007 echo "Taking IntegrationTestWithHLT_cfg.py from the local release area"
0008 else
0009 cp $CMSSW_RELEASE_BASE/src/FastSimulation/Configuration/test/IntegrationTestWithHLT_cfg.py IntegrationTestWithHLTWithTiming_cfg.py
0010 echo "Taking IntegrationTestWithHLT_cfg.py from the central release area"
0011 fi
0012 echo 'process.Timing = cms.Service("Timing")' >> IntegrationTestWithHLTWithTiming_cfg.py
0013 echo 'process.load("FWCore/MessageService/MessageLogger_cfi")' >> IntegrationTestWithHLTWithTiming_cfg.py
0014 echo 'process.MessageLogger.cerr.enable = False' >> IntegrationTestWithHLTWithTiming_cfg.py
0015 echo 'process.MessageLogger.files.pyDetailedInfo = dict(extension = "txt")' >> IntegrationTestWithHLTWithTiming_cfg.py
0016
0017
0018 oval b
0019
0020
0021 /usr/bin/time -o timefrac -f'%P' oval run cmsRun.runWithTiming
0022 rm IntegrationTestWithHLTWithTiming_cfg.py
0023
0024
0025 grep "TimeModule>" pyDetailedInfo.txt > TimingInfo.txt
0026
0027
0028 timefraction=`sed -e 's/\%//' timefrac`
0029 $CMSSW_BASE/test/slc4_ia32_gcc345/timing -t $timefraction -n TimingInfo.txt -o > tmp_file
0030 grep -A 9999 "Timing per module" tmp_file | grep -B 9999 "Timing per label" | grep OVAL | sort -k 3
0031