Last active
August 29, 2015 14:23
-
-
Save werner-freytag/5ed658b19048707e593e to your computer and use it in GitHub Desktop.
One-liner for profiling a PHP page with XHProf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
register_shutdown_function(function(){$d=xhprof_disable();uasort($d,function($a,$b){$k='wt';return$a[$k]>$b[$k]?-1:$a[$k]!=$b[$k];});var_export($d);});xhprof_enable(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment