aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-09-26 17:51:37 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-09-26 17:51:37 -0700
commit7a1f00ef81a886ce7ed3b47775abdfd73e24c4c4 (patch)
tree7e452ed00b3eb1fc1d6b0557c98b35e030483933
parent94b9d47b75f54aa45b3b1d2a43b689ad75fe6c56 (diff)
add total time to html compiler phase
-rw-r--r--src/compiler_phase.html (renamed from src/compiler_funcs.html)7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/compiler_funcs.html b/src/compiler_phase.html
index a769955b..8ca631e8 100644
--- a/src/compiler_funcs.html
+++ b/src/compiler_phase.html
@@ -5,7 +5,7 @@ Open the web console to see stderr output
<hr>
<pre id="output"></pre>
<script>
- arguments = ['tmp/emscripten_temp/tmpgo4sBT.txt', 'tmp/emscripten_temp/tmph9FP9W.func_0.ll', 'funcs', 'tmp/emscripten_temp/tmp0Aj1Vk.json']; // copy from emscripten.py output
+ arguments = ['tmp/emscripten_temp/tmpbTF9CI.txt', 'tmp/emscripten_temp/tmpz8Yvie.pre.ll', 'pre']; // copy from emscripten.py output
var outputElement = document.getElementById('output');
print = function(x) {
@@ -20,9 +20,14 @@ Open the web console to see stderr output
throw 'what?'
}
};
+
+ var startTime = Date.now();
</script>
<script src="compiler.js">
</script>
+<script>
+ outputElement.innerHTML += '<br>total time: ' + (Date.now() - startTime);
+</script>
</body>
</html>