Profiling

The Profiler displays a breakdown of the executed PHP code in order to detect bottlenecks in scripts by locating problematic sections of code. These are scripts that consume excessive loading-time. The Profiler provides you with detailed reports that are essential to optimizing the overall performance of your application.

See below for a list of the three different profiling methods PDT includes.

PHP CLI Application

Allows you to profile files on your workspace using local PHP executable debugger. The PHP CLI debugger enables developers to locally validate freshly developed code before deploying to a web server. The internal option means that only files located in local directories can be profiled. When profiling internal files, PDT uses PHP CLI debugger that is installed on top of the PHP executable specified in profile launch configuration.

See Locally Profiling a PHP Script for more information.

Note:

Your PHP CLI must be running the Zend Debugger or Xdebug in order for profiling capabilities to function.

PHP Web Application

Allows you to profile applications situated on a server. It allows you to profile whole applications and projects.

The PHP Web Page Profile setting has an option to give the files you are working on first priority when profiling, using the �Local Copy� option. This means that, when possible, file content is taken from the files situated on your Workspace. This prevents you from having to upload the latest revisions.

See Profiling a PHP Web Page for more information.

Note:

Your PHP server must be running the Zend Debugger or Xdebug in order for profiling capabilities to function.

Profiling with Browser Toolbars

Zend Debugger

You can also start profile session for a web application by using different browser toolbars like Z-Ray or Zend Debugger Toolbar.

Xdebug

If you turn on xdebug.profiler_enable_trigger you will able to run via COOKIE/GET/POST parameter "XDEBUG_PROFILE=1". Cookie can be created via browser toolbar, for example The easiest Xdebug or Xdebug helper.

See Profiling with Browser Toolbars for more information.

Note:

Your PHP server must be running the Zend Debugger or Xdebug in order for profiling capabilities to function.