File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44import os
55import sys
66
7-
87METRIC_SPECS = [
98 ("TotalMemoryGrowth" , "bytes" ),
109 ("AvgRetained" , "bytes" ),
Original file line number Diff line number Diff line change 130130 echo " <a target=\" _blank\" href=\" ${PROFILING_WORKFLOW} /diff-$BASENAME .html\" >diff-$BASENAME </a></td>" >> $WORKSPACE /upload/profiling/index-$PROFILING_WORKFLOW .html || true
131131 done
132132 echo " </tr>" >> $WORKSPACE /upload/profiling/index-$PROFILING_WORKFLOW .html
133+ echo " <tr><td>Module Event Alloc Monitor Comparison</td>" >> $WORKSPACE /upload/profiling/index-$PROFILING_WORKFLOW .html
134+ for f in $( find $PROFILING_WORKFLOW -type f -name ' step*_moduleEventAllocMonitor.circles.json' | sort -V ) ; do
135+ BASENAME=$( basename $f )
136+ get_jenkins_artifacts profiling/${CMSSW_VERSION} /${SCRAM_ARCH} /$f $PWD /$CMSSW_VERSION -$BASENAME || true
137+ if ! [ -f $PWD /$CMSSW_VERSION -$BASENAME ] ; then
138+ echo " <td>IB file not found, skipping diff</td>" >> $WORKSPACE /upload/profiling/index-$PROFILING_WORKFLOW .html || true
139+ continue
140+ fi
141+ $CMS_BOT_DIR /comparisons/moduleEventAllocMonitor-circles-diff.py $CMSSW_VERSION -$BASENAME $f > $f .log || true
142+ echo " <td>" >> $WORKSPACE /upload/profiling/index-$PROFILING_WORKFLOW .html || true
143+ if grep " Error: input files describe different metrics" $f .log ; then
144+ echo " IB and PR files describe different metrics, comparing to self for diff<BR>" >> $WORKSPACE /upload/profiling/index-$PROFILING_WORKFLOW .html || true
145+ $CMS_BOT_DIR /comparisons/moduleEventAllocMonitor-circles-diff.py $f $f > $f .log || true
146+ fi
147+ echo " <a target=\" _blank\" href=\" ${PROFILING_WORKFLOW} /diff-$BASENAME .html\" >diff-$BASENAME </a></td>" >> $WORKSPACE /upload/profiling/index-$PROFILING_WORKFLOW .html || true
148+ done
149+ echo " </tr>" >> $WORKSPACE /upload/profiling/index-$PROFILING_WORKFLOW .html
133150 for f in $( find $PROFILING_WORKFLOW -type f -name ' *.json.gz' -o -name ' *.log' -o -name ' *.txt' -o -name ' *.tmp' -o -name ' *.heap*' -o -name ' *.json' -o -name ' *.html' | grep -v ' r-step' ) ; do
134151 d=$( dirname $f )
135152 mkdir -p $WORKSPACE /upload/profiling/$d || true
You can’t perform that action at this time.
0 commit comments