aboutsummaryrefslogtreecommitdiff
path: root/Examples/js_calltime_example.txt
diff options
context:
space:
mode:
authorGeorge V. Neville-Neil <gnn@FreeBSD.org>2012-05-12 20:38:18 +0000
committerGeorge V. Neville-Neil <gnn@FreeBSD.org>2012-05-12 20:38:18 +0000
commit055173dba4a263acf10325a49eebf82915369ed2 (patch)
treeaec2772e8855e6dbaea6d8136ed0c47bcb825dee /Examples/js_calltime_example.txt
parent87c8f7aa3a46118212b99f0d58b18aa93c06b02a (diff)
downloadsrc-055173dba4a263acf10325a49eebf82915369ed2.tar.gz
src-055173dba4a263acf10325a49eebf82915369ed2.zip
Add the remaining scripts from the DTraceToolkit, version 0.99, to thevendor/dtracetoolkit/dtracetoolkit-20120512vendor/dtracetoolkit
Notes
Notes: svn path=/vendor/dtracetoolkit/dist/; revision=235368 svn path=/vendor/dtracetoolkit/dtracetoolkit-20120512/; revision=235374; tag=vendor/dtracetoolkit/dtracetoolkit-20120512
Diffstat (limited to 'Examples/js_calltime_example.txt')
-rw-r--r--Examples/js_calltime_example.txt60
1 files changed, 60 insertions, 0 deletions
diff --git a/Examples/js_calltime_example.txt b/Examples/js_calltime_example.txt
new file mode 100644
index 000000000000..0b69b76e0a7a
--- /dev/null
+++ b/Examples/js_calltime_example.txt
@@ -0,0 +1,60 @@
+The following are examples of js_calltime.d.
+
+This script traces the elapsed time of JavaScript functions and
+prints a report. Here it traces the example program,
+Code/JavaScript/func_clock.html
+
+# js_calltime.d
+Tracing... Hit Ctrl-C to end.
+^C
+
+Count,
+ FILE TYPE NAME COUNT
+ func_clock.html func func_a 3
+ func_clock.html func func_b 3
+ func_clock.html func func_c 3
+ func_clock.html func setTimeout 3
+ func_clock.html func start 3
+ func_clock.html obj-new Date 3
+ func_clock.html func getElementById 12
+ - total - 30
+
+Elapsed times (us),
+ FILE TYPE NAME TOTAL
+ - total - 29
+ func_clock.html obj-new Date 29
+
+Exclusive function elapsed times (us),
+ FILE TYPE NAME TOTAL
+ func_clock.html func setTimeout 229
+ func_clock.html func getElementById 378
+ func_clock.html func start 4061
+ func_clock.html func func_a 51080
+ func_clock.html func func_b 102943
+ func_clock.html func func_c 153330
+ - total - 312024
+
+Inclusive function elapsed times (us),
+ FILE TYPE NAME TOTAL
+ func_clock.html func setTimeout 229
+ func_clock.html func getElementById 378
+ func_clock.html func func_c 153454
+ func_clock.html func func_b 256470
+ func_clock.html func func_a 307601
+ func_clock.html func start 312054
+
+Counts shows us how many times each different function was called, and how
+many functions were called in total.
+
+The elapsed time shows us the time spent not in a JavaScript function.
+
+The exclusive function elapsed times show the time that each function spent
+processing code - while not in other functions.
+
+The inclusive function elapsed times show the time that each function spent
+processing code, including the time spent in other calls.
+
+These elapsed times are the absolute time from when the function began to
+when it completed - which includes off-CPU time due to other system events
+such as I/O, scheduling, interrupts, etc.
+