Translations:Manual:Profiling/4/en

You can use $XHProf, which is available for both HHVM and Zend PHP 5, and provides tracing and profiling. That's how the rest of the PHP world does it.