]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - cddl/contrib/dtracetoolkit/Examples/php_syscalls_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_syscalls_example.txt
1 The following are examples of php_syscalls.d.
2
3 This is a simple script to count executed PHP functions and system calls.
4 Here it traces an example program, Code/Php/func_abc.php
5
6 # php_syscalls.d 
7 Tracing... Hit Ctrl-C to end.
8 ^C
9  PID     FILE                       TYPE       NAME                      COUNT
10  18419   func_abc.php               func       func_a                        1
11  18419   func_abc.php               func       func_b                        1
12  18419   func_abc.php               func       func_c                        1
13  18419   func_abc.php               func       sleep                         3
14  18419   httpd                      syscall    nanosleep                     3
15
16 While tracing, four functions were called - func_a(), func_b(), func_c(), and
17 sleep.  There were also three instances of the system call nanosleep().
18
19 This script can provide an insight to how a PHP application is interacting
20 with the system, by providing both application function calls and system calls 
21 in the same output.
22