diff options
| author | christos <christos@NetBSD.org> | 2015-09-30 22:01:06 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2015-09-30 22:01:06 +0000 |
| commit | e137d3e0cc26fa9bd0abf9c93f273405d3262454 (patch) | |
| tree | 4ee836ef475344e4753a6ed6556d65a847f12a1e /external/cddl/dtracetoolkit/dist/Code/JavaScript/func_slow.html | |
| parent | fb62d9db1152e5cb288c8d7b66f2d506bc3b5d10 (diff) | |
Import the dtrace toolkit from FreeBSD; simple scripts such as dtruss work
unmodified. For others we'll need to add the missing probes and adjust.
This is not attached to the build.
Diffstat (limited to 'external/cddl/dtracetoolkit/dist/Code/JavaScript/func_slow.html')
| -rw-r--r-- | external/cddl/dtracetoolkit/dist/Code/JavaScript/func_slow.html | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/external/cddl/dtracetoolkit/dist/Code/JavaScript/func_slow.html b/external/cddl/dtracetoolkit/dist/Code/JavaScript/func_slow.html new file mode 100644 index 00000000000..14fdfda3870 --- /dev/null +++ b/external/cddl/dtracetoolkit/dist/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> |
