]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - cddl/contrib/dtracetoolkit/Examples/js_calltime_example.txt
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / cddl / contrib / dtracetoolkit / Examples / js_calltime_example.txt
1 The following are examples of js_calltime.d.
2
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
6
7 # js_calltime.d
8 Tracing... Hit Ctrl-C to end.
9 ^C
10
11 Count,
12    FILE                 TYPE       NAME                                COUNT
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
20    -                    total      -                                      30
21
22 Elapsed times (us),
23    FILE                 TYPE       NAME                                TOTAL
24    -                    total      -                                      29
25    func_clock.html      obj-new    Date                                   29
26
27 Exclusive function elapsed times (us),
28    FILE                 TYPE       NAME                                TOTAL
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
35    -                    total      -                                  312024
36
37 Inclusive function elapsed times (us),
38    FILE                 TYPE       NAME                                TOTAL
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
45
46 Counts shows us how many times each different function was called, and how
47 many functions were called in total.
48
49 The elapsed time shows us the time spent not in a JavaScript function.
50
51 The exclusive function elapsed times show the time that each function spent
52 processing code - while not in other functions.
53
54 The inclusive function elapsed times show the time that each function spent
55 processing code, including the time spent in other calls.
56
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.
60