Under construction
<?php
declare(ticks = 1); // should be in the beginning of file
require_once '/path/to/php-ftrace/lib/ftrace.php';
ftrace();
$test = new test();
$test->func1();
ftrace_print();
- Depth limit
ftrace(2); // will not trace deeper than 2 levels
- Return trace result
ftrace();
// ...
$traceData = ftrace_stop();
MIT