Translations:Manual:Profiling/4/en

You can use $tideways-source for PHP 7, or $XHProf, for PHP 5. These PHP extensions provide tracing and profiling capabilities.