1 The following are examples of running js_calldist.d.
3 Here it is running while the code at Code/JavaScript/func_clock.html is
7 Tracing... Hit Ctrl-C to end.
11 func_clock.html, obj-new, Date
12 value ------------- Distribution ------------- count
14 8 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 5
18 Exclusive function elapsed times (us),
19 func_clock.html, func, setTimeout
20 value ------------- Distribution ------------- count
22 64 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 5
25 func_clock.html, func, getElementById
26 value ------------- Distribution ------------- count
29 16 |@@@@@@@@@@@@@@@@@@ 9
30 32 |@@@@@@@@@@@@@@@@@@@@ 10
33 func_clock.html, func, start
34 value ------------- Distribution ------------- count
36 1024 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 5
39 func_clock.html, func, func_a
40 value ------------- Distribution ------------- count
42 16384 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 5
45 func_clock.html, func, func_b
46 value ------------- Distribution ------------- count
48 32768 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 5
51 func_clock.html, func, func_c
52 value ------------- Distribution ------------- count
54 32768 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 5
58 Inclusive function elapsed times (us),
59 func_clock.html, func, setTimeout
60 value ------------- Distribution ------------- count
62 64 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 5
65 func_clock.html, func, getElementById
66 value ------------- Distribution ------------- count
69 16 |@@@@@@@@@@@@@@@@@@ 9
70 32 |@@@@@@@@@@@@@@@@@@@@ 10
73 func_clock.html, func, func_c
74 value ------------- Distribution ------------- count
76 32768 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 5
79 func_clock.html, func, func_a
80 value ------------- Distribution ------------- count
82 65536 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 5
85 func_clock.html, func, func_b
86 value ------------- Distribution ------------- count
88 65536 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 5
91 func_clock.html, func, start
92 value ------------- Distribution ------------- count
94 65536 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 5
97 The elapsed times show us that the script spent some small amount of time
98 processing various events that were not functions. In this case there was
99 five new Date objects, and each event took between 8 microseconds and 15
102 The exclusive function elapsed times show the time each of our functions
103 takes, excluding the time spent in subroutines called by that function. We
104 can see in this example that func_a took between 16384 microseconds and 32767
107 The inclusive function elapsed times show that func_a took between 65536
108 microseconds and 131071 microseconds, including the time spent in any
109 subroutines it calls.