Skip to content

Instantly share code, notes, and snippets.

@mapkyca
Created April 24, 2013 07:58
Show Gist options
  • Save mapkyca/5450431 to your computer and use it in GitHub Desktop.
Save mapkyca/5450431 to your computer and use it in GitHub Desktop.
Enable xdebug profiling in a .htaccess file
#Turn on XDebug profiling in .htaccess
php_value xdebug.profiler_enable On
php_value xdebug.profiler_output_dir "/tmp"
php_value xdebug.profiler_output_name "%H.%R.%u.cachegrind.out"
@mapkyca
Copy link
Author

mapkyca commented Apr 24, 2013

profiler_output_name is important for web app profiling, since this generates a unique file per page request (useful for profiling api calls)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment