]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - cddl/contrib/dtracetoolkit/Examples/php_flow_example.txt
MFC r368207,368607:
[FreeBSD/stable/10.git] / cddl / contrib / dtracetoolkit / Examples / php_flow_example.txt
1 The following are examples of php_flow.d.
2
3 This is a simple script to trace the flow of PHP functions.
4 Here it traces the example program, Code/Php/func_abc.php
5
6 # php_flow.d 
7   C TIME(us)         FILE             -- FUNC
8   0 3645535409575    func_abc.php     -> func_a
9   0 3645535409653    func_abc.php       -> sleep
10   0 3645536410511    func_abc.php       <- sleep
11   0 3645536410536    func_abc.php       -> func_b
12   0 3645536410557    func_abc.php         -> sleep
13   0 3645537420627    func_abc.php         <- sleep
14   0 3645537420652    func_abc.php         -> func_c
15   0 3645537420673    func_abc.php           -> sleep
16   0 3645538430106    func_abc.php           <- sleep
17   0 3645538430125    func_abc.php         <- func_c
18   0 3645538430134    func_abc.php       <- func_b
19   0 3645538430143    func_abc.php     <- func_a
20 ^C
21
22 The fourth column is indented by 2 spaces to show when a new function begins.
23 This shows which function is calling which - the output above begins by
24 showing that func_a() began; slept, and returned from sleep; and then called
25 func_b().
26
27 The TIME(us) column shows time from boot in microseconds.
28
29 The FILE column shows the file that was being executed. 
30
31 If the output looks strange, check the CPU "C" column - if it changes,
32 then the output is probably shuffled. See Notes/ALLsnoop_notes.txt for
33 details and suggested workarounds.
34
35 See Notes/ALLflow_notes.txt for important notes about reading flow outputs.
36