If the option is enabled, Xdebug will be able to trace and save information (time, details) about all the functions/methods called in the script (CLI or Apache).
The aim of the profiling is mainly recognizing bottlenecks or simply what parts of the code that are slow.
In order to analyze the log file created, use KCacheGrind or WinCacheGrind (see screenshots below).
Setup and docs at [http://www.xdebug.org/docs/
Configuration for Wamp (PHP 5.3)
#php.ini
[xdebug]
zend_extension=c:/wamp/bin/
xdebug.profiler_enable = 1
xdebug.profiler_output_dir=C:/
xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_mode=req
Screenshots
No comments:
Post a Comment