diff options
author | gnn <gnn@FreeBSD.org> | 2012-05-12 20:38:18 +0000 |
---|---|---|
committer | gnn <gnn@FreeBSD.org> | 2012-05-12 20:38:18 +0000 |
commit | 4297c1b2d07fec7f50b70e26e3adb4d062b19e15 (patch) | |
tree | aec2772e8855e6dbaea6d8136ed0c47bcb825dee /Code/JavaScript/func_slow.html | |
parent | 111c75a23278cd9317f0a13867c22ee0f6c95b26 (diff) | |
download | FreeBSD-src-4297c1b2d07fec7f50b70e26e3adb4d062b19e15.zip FreeBSD-src-4297c1b2d07fec7f50b70e26e3adb4d062b19e15.tar.gz |
Add the remaining scripts from the DTraceToolkit, version 0.99, to the
vendor tree.
http://www.brendangregg.com/dtrace.html#DTraceToolkit
Diffstat (limited to 'Code/JavaScript/func_slow.html')
-rw-r--r-- | Code/JavaScript/func_slow.html | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Code/JavaScript/func_slow.html b/Code/JavaScript/func_slow.html new file mode 100644 index 0000000..14fdfda --- /dev/null +++ b/Code/JavaScript/func_slow.html @@ -0,0 +1,31 @@ +<HTML> +<HEAD><TITLE>func_slow, JavaScript</TITLE></HEAD> +<BODY> +<SCRIPT type="text/javascript"> +function func_c() { + document.write("Function C<br>") + for (i = 0; i < 30000; i++) { + j = i + 1 + } +} + +function func_b() { + document.write("Function B<br>") + for (i = 0; i < 20000; i++) { + j = i + 1 + } + func_c() +} + +function func_a() { + document.write("Function A<br>") + for (i = 0; i < 10000; i++) { + j = i + 1 + } + func_b() +} + +func_a() +</SCRIPT> +</BODY> +</HTML> |