]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - cddl/contrib/dtracetoolkit/Examples/php_funccalls_example.txt
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
[FreeBSD/stable/10.git] / cddl / contrib / dtracetoolkit / Examples / php_funccalls_example.txt
1 The following are examples of php_funccalls.d.
2
3 This is a simple script to count executed PHP functions. Here it traces
4 an example program, Code/Php/func_abc.php
5
6 # php_funccalls.d 
7 Tracing... Hit Ctrl-C to end.
8 ^C
9  FILE                             FUNC                                CALLS
10  func_abc.php                     func_a                                  1
11  func_abc.php                     func_b                                  1
12  func_abc.php                     func_c                                  1
13  func_abc.php                     sleep                                   3
14
15 While tracing, func_a() from the program "func_abc.php" was executed once,
16 as were func_b() and func_c().  sleep was executed three times.
17