xref: /netbsd-src/external/cddl/dtracetoolkit/dist/Examples/php_funccalls_example.txt (revision c29d51755812ace2e87aeefdb06cb2b4dac7087a)
1The following are examples of php_funccalls.d.
2
3This is a simple script to count executed PHP functions. Here it traces
4an example program, Code/Php/func_abc.php
5
6# php_funccalls.d
7Tracing... 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
15While tracing, func_a() from the program "func_abc.php" was executed once,
16as were func_b() and func_c().  sleep was executed three times.
17
18