Loading ci/complexity_measurements/genWebpageData.py +6 −0 Original line number Diff line number Diff line Loading @@ -425,6 +425,12 @@ def create_display_strings( displays.append(display) if which == "wmops_per_op": assert len(displays) == 4 # flot.js' "stack: true" depends on the order of data arrays # reorder here instead of reworking above loop displays = [displays[0], displays[2], displays[1], displays[3]] return displays Loading ci/complexity_measurements/index_complexity.html +79 −28 Original line number Diff line number Diff line Loading @@ -648,18 +648,21 @@ function WMOPS_perOP() { previousPoint = item.datapoint; $("#tooltip").remove(); var encData = Graphs_WMOPS_perOP.wmops_worstcase_per_op.displays[0]; var decData = Graphs_WMOPS_perOP.wmops_worstcase_per_op.displays[1]; var encData, decData; var encRefData, decRefData; var text = ""; if (Graphs_WMOPS_perOP.wmops_worstcase_per_op.displays.length == 2) { encData = Graphs_WMOPS_perOP.wmops_worstcase_per_op.displays[0]; decData = Graphs_WMOPS_perOP.wmops_worstcase_per_op.displays[1]; var x = item.datapoint[0]; var y = item.datapoint[1]; var scoreEnc = parseFloat(encData.data[x][1]); var scoreDec = parseFloat(decData.data[x][1]); var scoreEnc = Math.max(parseFloat(encData.data[x][1]), 0); var scoreDec = Math.max(parseFloat(decData.data[x][1]), 0); var scoreCodec = Math.round((scoreEnc + scoreDec) * 100) / 100; var text = ""; text += "<b><u>Mode: " + Graphs_WMOPS_perOP.wmops_worstcase_per_op.runs[x].operatingPoint + "</u></b><br>"; text += 'Score: ' + Math.round(y * 100) / 100; Loading @@ -672,14 +675,62 @@ function WMOPS_perOP() { text += " (enc + dec)"; } text += "<br><br>"; text += "Worst case enc: " + scoreEnc + " WMOPS<br>"; text += "Worst case dec: " + scoreDec + " WMOPS<br>"; text += "Worst case codec: " + scoreCodec + " WMOPS<br><br>"; var nEntriesWmopsGraph = Graphs_WMOPS.wmops_worstcase.runs.length - 1; text += "<a href=\"logs/" + Graphs_WMOPS.wmops_worstcase.runs[nEntriesWmopsGraph].logFile + "\">Logfile</a><br>"; } else if (Graphs_WMOPS_perOP.wmops_worstcase_per_op.displays.length == 4) { encData = Graphs_WMOPS_perOP.wmops_worstcase_per_op.displays[0]; decData = Graphs_WMOPS_perOP.wmops_worstcase_per_op.displays[2]; encRefData = Graphs_WMOPS_perOP.wmops_worstcase_per_op.displays[1]; decRefData = Graphs_WMOPS_perOP.wmops_worstcase_per_op.displays[3]; var x = item.datapoint[0]; var y = item.datapoint[1]; var run = Graphs_WMOPS_perOP.wmops_worstcase_per_op.runs[x]; var codec = run.codec; var op = run.operatingPoint; var scoreEnc, scoreDec; if (codec == "FLT REF") { x = (x - 1) / 2; scoreEnc = Math.max(parseFloat(encRefData.data[x][1]), 0); scoreDec = Math.max(parseFloat(decRefData.data[x][1]), 0); } else if (codec == "BASOP") { x = x / 2; scoreEnc = Math.max(parseFloat(encData.data[x][1]), 0); scoreDec = Math.max(parseFloat(decData.data[x][1]), 0); } var scoreCodec = Math.round((scoreEnc + scoreDec) * 100) / 100; text += "<b><u>Mode: " + op + " - " + codec + "</u></b><br>"; text += 'Score: ' + Math.round(y * 100) / 100; if (graph.direction == -1) text += " WMOPS"; if( item.series.id == "worstCaseEnc" ){ text += " (enc)"; } if( item.series.id == "worstCaseDec" ){ text += " (enc + dec)"; } text += "<br><br>"; text += "Worst case enc: " + scoreEnc + " WMOPS<br>"; text += "Worst case dec: " + scoreDec + " WMOPS<br>"; text += "Worst case codec: " + scoreCodec + " WMOPS<br><br>"; var nEntriesWmopsGraph = Graphs_WMOPS.wmops_worstcase.runs.length - 1; text += "<a href=\"logs/" + Graphs_WMOPS.wmops_worstcase.runs[nEntriesWmopsGraph].logFile + "\">Logfile</a><br>"; } showToolTip(item.pageX, item.pageY, text); }); Loading Loading
ci/complexity_measurements/genWebpageData.py +6 −0 Original line number Diff line number Diff line Loading @@ -425,6 +425,12 @@ def create_display_strings( displays.append(display) if which == "wmops_per_op": assert len(displays) == 4 # flot.js' "stack: true" depends on the order of data arrays # reorder here instead of reworking above loop displays = [displays[0], displays[2], displays[1], displays[3]] return displays Loading
ci/complexity_measurements/index_complexity.html +79 −28 Original line number Diff line number Diff line Loading @@ -648,18 +648,21 @@ function WMOPS_perOP() { previousPoint = item.datapoint; $("#tooltip").remove(); var encData = Graphs_WMOPS_perOP.wmops_worstcase_per_op.displays[0]; var decData = Graphs_WMOPS_perOP.wmops_worstcase_per_op.displays[1]; var encData, decData; var encRefData, decRefData; var text = ""; if (Graphs_WMOPS_perOP.wmops_worstcase_per_op.displays.length == 2) { encData = Graphs_WMOPS_perOP.wmops_worstcase_per_op.displays[0]; decData = Graphs_WMOPS_perOP.wmops_worstcase_per_op.displays[1]; var x = item.datapoint[0]; var y = item.datapoint[1]; var scoreEnc = parseFloat(encData.data[x][1]); var scoreDec = parseFloat(decData.data[x][1]); var scoreEnc = Math.max(parseFloat(encData.data[x][1]), 0); var scoreDec = Math.max(parseFloat(decData.data[x][1]), 0); var scoreCodec = Math.round((scoreEnc + scoreDec) * 100) / 100; var text = ""; text += "<b><u>Mode: " + Graphs_WMOPS_perOP.wmops_worstcase_per_op.runs[x].operatingPoint + "</u></b><br>"; text += 'Score: ' + Math.round(y * 100) / 100; Loading @@ -672,14 +675,62 @@ function WMOPS_perOP() { text += " (enc + dec)"; } text += "<br><br>"; text += "Worst case enc: " + scoreEnc + " WMOPS<br>"; text += "Worst case dec: " + scoreDec + " WMOPS<br>"; text += "Worst case codec: " + scoreCodec + " WMOPS<br><br>"; var nEntriesWmopsGraph = Graphs_WMOPS.wmops_worstcase.runs.length - 1; text += "<a href=\"logs/" + Graphs_WMOPS.wmops_worstcase.runs[nEntriesWmopsGraph].logFile + "\">Logfile</a><br>"; } else if (Graphs_WMOPS_perOP.wmops_worstcase_per_op.displays.length == 4) { encData = Graphs_WMOPS_perOP.wmops_worstcase_per_op.displays[0]; decData = Graphs_WMOPS_perOP.wmops_worstcase_per_op.displays[2]; encRefData = Graphs_WMOPS_perOP.wmops_worstcase_per_op.displays[1]; decRefData = Graphs_WMOPS_perOP.wmops_worstcase_per_op.displays[3]; var x = item.datapoint[0]; var y = item.datapoint[1]; var run = Graphs_WMOPS_perOP.wmops_worstcase_per_op.runs[x]; var codec = run.codec; var op = run.operatingPoint; var scoreEnc, scoreDec; if (codec == "FLT REF") { x = (x - 1) / 2; scoreEnc = Math.max(parseFloat(encRefData.data[x][1]), 0); scoreDec = Math.max(parseFloat(decRefData.data[x][1]), 0); } else if (codec == "BASOP") { x = x / 2; scoreEnc = Math.max(parseFloat(encData.data[x][1]), 0); scoreDec = Math.max(parseFloat(decData.data[x][1]), 0); } var scoreCodec = Math.round((scoreEnc + scoreDec) * 100) / 100; text += "<b><u>Mode: " + op + " - " + codec + "</u></b><br>"; text += 'Score: ' + Math.round(y * 100) / 100; if (graph.direction == -1) text += " WMOPS"; if( item.series.id == "worstCaseEnc" ){ text += " (enc)"; } if( item.series.id == "worstCaseDec" ){ text += " (enc + dec)"; } text += "<br><br>"; text += "Worst case enc: " + scoreEnc + " WMOPS<br>"; text += "Worst case dec: " + scoreDec + " WMOPS<br>"; text += "Worst case codec: " + scoreCodec + " WMOPS<br><br>"; var nEntriesWmopsGraph = Graphs_WMOPS.wmops_worstcase.runs.length - 1; text += "<a href=\"logs/" + Graphs_WMOPS.wmops_worstcase.runs[nEntriesWmopsGraph].logFile + "\">Logfile</a><br>"; } showToolTip(item.pageX, item.pageY, text); }); Loading