summaryrefslogtreecommitdiffstats
path: root/cddl/contrib/dtracetoolkit/Examples/js_calltime_example.txt
blob: 0b69b76e0a7a00d4524332b31bee9cd51aa1ef5b (plain)
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
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.

OpenPOWER on IntegriCloud