(PECL apd >= 0.2)
apd_set_pprof_trace — Starts the session debugging
$dump_directory = ini_get("apd.dumpdir")
[, string $fragment = "pprof"
]] ) : stringStarts debugging to pprof_{process_id} in the dump directory.
dump_directoryThe directory in which the profile dump file is written. If not set, the apd.dumpdir setting from the php.ini file is used.
fragment
Returns path of the destination file.
Exemplo #1 apd_set_pprof_trace() example
<?php
apd_set_pprof_trace();
?>