Home | History | Annotate | Line # | Download | only in Examples
      1 The following are examples of js_flowtime.d.
      2 
      3 This is a simple script to trace the flow of JavaScript functions.
      4 Here it traces the example program, Code/JavaScript/func_clock.html
      5 
      6 # js_flowtime.d 
      7   C TIME(us)         FILE               DELTA(us) -- FUNC
      8   0 3650523390654    func_clock.html            2 -> start
      9   0 3650523390721    func_clock.html           67   -> getElementById
     10   0 3650523390773    func_clock.html           51   <- getElementById
     11   0 3650523391609    func_clock.html          835   -> func_a
     12   0 3650523391627    func_clock.html           18     -> getElementById
     13   0 3650523391651    func_clock.html           23     <- getElementById
     14   0 3650523409735    func_clock.html        18084     -> func_b
     15   0 3650523409763    func_clock.html           27       -> getElementById
     16   0 3650523409795    func_clock.html           32       <- getElementById
     17   0 3650523445921    func_clock.html        36125       -> func_c
     18   0 3650523445959    func_clock.html           38         -> getElementById
     19   0 3650523446004    func_clock.html           44         <- getElementById
     20   0 3650523500557    func_clock.html        54552       <- func_c
     21   0 3650523500581    func_clock.html           24     <- func_b
     22   0 3650523500593    func_clock.html           11   <- func_a
     23   0 3650523500648    func_clock.html           54   -> setTimeout
     24   0 3650523500736    func_clock.html           88   <- setTimeout
     25   0 3650523500749    func_clock.html           12 <- start
     26 ^C
     27 
     28 The fifth column is indented by 2 spaces to show when a new function begins.
     29 This shows which function is calling which. 
     30 
     31 The TIME(us) column shows time since boot.
     32 
     33 The DELTA(us) column shows time from that line to the previous line, and
     34 so can be a bit tricky to read. For example, the second line of data output
     35 shows that a getElementById function happened 67 microseconds after start.
     36 
     37 The FILE column shows file that was being executed.
     38 
     39 If the output looks shuffled, check the CPU "C" and "TIME" columns, and
     40 post sort based on TIME if necessary.
     41 
     42 See Notes/ALLflow_notes.txt for important notes about reading flow outputs.
     43