Commit 37235715 authored by Jan Kiene's avatar Jan Kiene
Browse files

remove debug output + commented code

parent 218ad738
Loading
Loading
Loading
Loading
Loading
+0 −62
Original line number Diff line number Diff line
@@ -668,15 +668,12 @@ function WMOPS_perOP() {
        text += "Worst case: "   + score + " WMOPS<br>";
      }
      else if (graph.displays.length == 2) {
          console.log(graph.displays);
          console.log(x);
        if ( x % 2 != 0 ) {
          // these indices are for the flt ref bars
          // we need to subtract 1 to get the correct id
          x = x - 1;
        }
        x = Math.floor(x / 2);
        console.log(x);
        var score_basop = Math.max(parseFloat(graph.displays[0].data[x][1]), 0);
        var score_flt_ref = Math.max(parseFloat(graph.displays[1].data[x][1]), 0);
        text += "Worst case BASOP: "   + score_basop + " WMOPS<br>";
@@ -685,65 +682,6 @@ function WMOPS_perOP() {
      var nEntriesWmopsGraph = graph.runs.length - 1;
      text += "<a href=\"logs/" + graph.runs[nEntriesWmopsGraph].logFile + "\">Logfile</a><br>";

      // 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 = 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;
      //
      //   text += "<b><u>Mode: " + Graphs_WMOPS_perOP.wmops_worstcase_per_op.runs[x].operatingPoint + "</u></b><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[1];
      //
      //   encRefData = Graphs_WMOPS_perOP.wmops_worstcase_per_op.displays[2];
      //   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 op = run.operatingPoint;
      //   var codec = op.split(" - ")[1];
      //
      //   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 + "</u></b><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);

       });