]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - cddl/contrib/dtracetoolkit/Examples/js_flowinfo_example.txt
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
[FreeBSD/stable/10.git] / cddl / contrib / dtracetoolkit / Examples / js_flowinfo_example.txt
1 Following are examples of js_flowinfo.d.
2
3 This is a simple script to trace the flow of JavaScript functions.  Here it 
4 traces the example program Code/JavaScript/func_clock.html
5
6 # js_flowinfo.d
7   C    PID  DELTA(us)              FILE:LINE TYPE     -- FUNC
8   0  11651          2                 .:0    func     -> start
9   0  11651         75   func_clock.html:30   func       -> getElementById
10   0  11651         51   func_clock.html:-    func       <- getElementById
11   0  11651        479   func_clock.html:31   func       -> func_a
12   0  11651         25   func_clock.html:21   func         -> getElementById
13   0  11651         23   func_clock.html:-    func         <- getElementById
14   0  11651      30611   func_clock.html:25   func         -> func_b
15   0  11651         79   func_clock.html:13   func           -> getElementById
16   0  11651         51   func_clock.html:-    func           <- getElementById
17   0  11651      33922   func_clock.html:17   func           -> func_c
18   0  11651         75   func_clock.html:6    func             -> getElementById
19   0  11651         50   func_clock.html:-    func             <- getElementById
20   0  11651      50481   func_clock.html:-    func           <- func_c
21   0  11651         24   func_clock.html:-    func         <- func_b
22   0  11651         10   func_clock.html:-    func       <- func_a
23   0  11651         39   func_clock.html:32   func       -> setTimeout
24   0  11651        118   func_clock.html:-    func       <- setTimeout
25   0  11651         11   func_clock.html:-    func     <- start
26 ^C
27
28 As each function is entered, the last column is indented by 2 spaces. This
29 shows which function is calling which.
30
31 The DELTA(us) column shows the change in time from the previous line to the
32 current line.
33
34 The FILE::LINE column shows which line in which file was being executed. Refer
35 to the source program to see what this line refers to.
36
37 If the output looks shuffled, check the CPU "C" column - if it changes,
38 then the output is probably shuffled. See Notes/ALLsnoop_notes.txt for
39 details and suggested workarounds.
40
41 See Notes/ALLflow_notes.txt for important notes about reading flow outputs.
42