summaryrefslogtreecommitdiff
path: root/Examples/php_syscalls_example.txt
diff options
context:
space:
mode:
authorGeorge V. Neville-Neil <gnn@FreeBSD.org>2012-05-12 20:38:18 +0000
committerGeorge V. Neville-Neil <gnn@FreeBSD.org>2012-05-12 20:38:18 +0000
commit055173dba4a263acf10325a49eebf82915369ed2 (patch)
treeaec2772e8855e6dbaea6d8136ed0c47bcb825dee /Examples/php_syscalls_example.txt
parent87c8f7aa3a46118212b99f0d58b18aa93c06b02a (diff)
Notes
Diffstat (limited to 'Examples/php_syscalls_example.txt')
-rw-r--r--Examples/php_syscalls_example.txt22
1 files changed, 22 insertions, 0 deletions
diff --git a/Examples/php_syscalls_example.txt b/Examples/php_syscalls_example.txt
new file mode 100644
index 0000000000000..c783420fc0fb0
--- /dev/null
+++ b/Examples/php_syscalls_example.txt
@@ -0,0 +1,22 @@
+The following are examples of php_syscalls.d.
+
+This is a simple script to count executed PHP functions and system calls.
+Here it traces an example program, Code/Php/func_abc.php
+
+# php_syscalls.d
+Tracing... Hit Ctrl-C to end.
+^C
+ PID FILE TYPE NAME COUNT
+ 18419 func_abc.php func func_a 1
+ 18419 func_abc.php func func_b 1
+ 18419 func_abc.php func func_c 1
+ 18419 func_abc.php func sleep 3
+ 18419 httpd syscall nanosleep 3
+
+While tracing, four functions were called - func_a(), func_b(), func_c(), and
+sleep. There were also three instances of the system call nanosleep().
+
+This script can provide an insight to how a PHP application is interacting
+with the system, by providing both application function calls and system calls
+in the same output.
+