Skip to content

Instantly share code, notes, and snippets.

@buonzz
Last active May 10, 2020 07:56
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 buonzz/1bea08f99d4ed3c9de07c99d091a8731 to your computer and use it in GitHub Desktop.
Save buonzz/1bea08f99d4ed3c9de07c99d091a8731 to your computer and use it in GitHub Desktop.
xdebug cheatsheet for MacOS

Profiling

is where you can find the profiling info generated by xdebug

xdebug.profiler_output_dir = /var/tmp

profile the page you visited when the XDEBUG_PROFILE variable is present in cookie/POST/GET

xdebug.profiler_enable_trigger=1

install qcachegrind - this will be used for viewing the profiling information

brew install qcachegrind

open the profile viewer

qcachegrind

open one of the output files in /var/tmp/cachegrind.out.*

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