Skip to Content
Mastering PHP 7
book

Mastering PHP 7

by Branko Ajzele
June 2017
Intermediate to advanced
536 pages
9h 49m
English
Packt Publishing
Content preview from Mastering PHP 7

Profiling

The profiling feature of Xdebug can be easily turned on with the xdebug.profiler_enable=1 option. With our Ubuntu installation, we will modify the /etc/php/7.0/apache2/conf.d/20-xdebug.ini file as follows:

zend_extension=xdebug.soxdebug.remote_enable=1xdebug.auto_trace=1xdebug.profiler_enable=1

Once the file has been modified, we need to make sure the Apache server is restarted :

 service apache2 restart 

While xdebug.profiler_enable is the required option to turn on the profiling feature, other related options include the following:

  • xdebug.profiler_aggregate
  • xdebug.profiler_append
  • xdebug.profiler_enable
  • xdebug.profiler_enable_trigger
  • xdebug.profiler_enable_trigger_value
  • xdebug.profiler_output_dir
  • xdebug.profiler_output_name ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning PHP 7

Learning PHP 7

Antonio L Zapata (GBP)
Upgrading to PHP 5

Upgrading to PHP 5

Adam Trachtenberg

Publisher Resources

ISBN: 9781785882814Supplemental Content