Skip to content

Instantly share code, notes, and snippets.

@carltondickson
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carltondickson/d62a01a1e45822cfa0ea to your computer and use it in GitHub Desktop.
Save carltondickson/d62a01a1e45822cfa0ea to your computer and use it in GitHub Desktop.
Profiling options for PHPStorm configuration
Create new run configuration with following "Command Line > Interpreter Options" or add the options after "php" on the command line
/usr/bin/php -d xdebug.profiler_output_dir="/tmp/profiler" -d xdebug.profiler_enable_trigger=1 -d xdebug.profiler_enable=1
Ref: http://confluence.jetbrains.com/display/PhpStorm/Profiling%20PHP%20applications%20with%20PhpStorm%20and%20Xdebug
@carltondickson
Copy link
Author

Make sure that the /tmp/profiler directory exists and just chmod to 777 to be sure PHP CLI can write to folder

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