-
Notifications
You must be signed in to change notification settings - Fork 133
/
Copy pathjs_calldist_example.txt
110 lines (89 loc) · 5.16 KB
/
js_calldist_example.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
The following are examples of running js_calldist.d.
Here it is running while the code at Code/JavaScript/func_clock.html is
being executed.
# js_calldist.d
Tracing... Hit Ctrl-C to end.
^C
Elapsed times (us),
func_clock.html, obj-new, Date
value ------------- Distribution ------------- count
4 | 0
8 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 5
16 | 0
Exclusive function elapsed times (us),
func_clock.html, func, setTimeout
value ------------- Distribution ------------- count
32 | 0
64 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 5
128 | 0
func_clock.html, func, getElementById
value ------------- Distribution ------------- count
4 | 0
8 |@@ 1
16 |@@@@@@@@@@@@@@@@@@ 9
32 |@@@@@@@@@@@@@@@@@@@@ 10
64 | 0
func_clock.html, func, start
value ------------- Distribution ------------- count
512 | 0
1024 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 5
2048 | 0
func_clock.html, func, func_a
value ------------- Distribution ------------- count
8192 | 0
16384 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 5
32768 | 0
func_clock.html, func, func_b
value ------------- Distribution ------------- count
16384 | 0
32768 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 5
65536 | 0
func_clock.html, func, func_c
value ------------- Distribution ------------- count
16384 | 0
32768 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 5
65536 | 0
Inclusive function elapsed times (us),
func_clock.html, func, setTimeout
value ------------- Distribution ------------- count
32 | 0
64 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 5
128 | 0
func_clock.html, func, getElementById
value ------------- Distribution ------------- count
4 | 0
8 |@@ 1
16 |@@@@@@@@@@@@@@@@@@ 9
32 |@@@@@@@@@@@@@@@@@@@@ 10
64 | 0
func_clock.html, func, func_c
value ------------- Distribution ------------- count
16384 | 0
32768 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 5
65536 | 0
func_clock.html, func, func_a
value ------------- Distribution ------------- count
32768 | 0
65536 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 5
131072 | 0
func_clock.html, func, func_b
value ------------- Distribution ------------- count
32768 | 0
65536 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 5
131072 | 0
func_clock.html, func, start
value ------------- Distribution ------------- count
32768 | 0
65536 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 5
131072 | 0
The elapsed times show us that the script spent some small amount of time
processing various events that were not functions. In this case there was
five new Date objects, and each event took between 8 microseconds and 15
microseconds.
The exclusive function elapsed times show the time each of our functions
takes, excluding the time spent in subroutines called by that function. We
can see in this example that func_a took between 16384 microseconds and 32767
microseconds.
The inclusive function elapsed times show that func_a took between 65536
microseconds and 131071 microseconds, including the time spent in any
subroutines it calls.