1 The following are examples of js_calltime.d.
3 This script traces the elapsed time of JavaScript functions and
4 prints a report. Here it traces the example program,
5 Code/JavaScript/func_clock.html
8 Tracing... Hit Ctrl-C to end.
13 func_clock.html func func_a 3
14 func_clock.html func func_b 3
15 func_clock.html func func_c 3
16 func_clock.html func setTimeout 3
17 func_clock.html func start 3
18 func_clock.html obj-new Date 3
19 func_clock.html func getElementById 12
25 func_clock.html obj-new Date 29
27 Exclusive function elapsed times (us),
29 func_clock.html func setTimeout 229
30 func_clock.html func getElementById 378
31 func_clock.html func start 4061
32 func_clock.html func func_a 51080
33 func_clock.html func func_b 102943
34 func_clock.html func func_c 153330
37 Inclusive function elapsed times (us),
39 func_clock.html func setTimeout 229
40 func_clock.html func getElementById 378
41 func_clock.html func func_c 153454
42 func_clock.html func func_b 256470
43 func_clock.html func func_a 307601
44 func_clock.html func start 312054
46 Counts shows us how many times each different function was called, and how
47 many functions were called in total.
49 The elapsed time shows us the time spent not in a JavaScript function.
51 The exclusive function elapsed times show the time that each function spent
52 processing code - while not in other functions.
54 The inclusive function elapsed times show the time that each function spent
55 processing code, including the time spent in other calls.
57 These elapsed times are the absolute time from when the function began to
58 when it completed - which includes off-CPU time due to other system events
59 such as I/O, scheduling, interrupts, etc.