Profiling

The Zend 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.

 

Zend Studio includes five different profiling methods:

PHP Script Local Profiling

Allows you to profile files on your workspace using Zend Studio's internal debugger.
The Internal 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 the Zend Studio Internal Debugger uses its own PHP executable that was installed together with Zend Studio.

 

See Locally Profiling a PHP Script for more information.

PHP Script Remote Profiling

Allows you to profile files on your workspace using your server's Zend Debugger.

This allows you to profile local files using the Zend Debugger situated on your server. This allows you to test your files in the production environment, and allows you to utilize the extensions installed on your server.

 

See Remotely Profiling a PHP Script  for more information.

Note:

Your server must be running the Zend Debugger in order for remote debugging and profiling capabilities to function.
The Zend Debugger comes bundled with Zend Server, Zend Core and Zend Platform, but can also be downloaded as a separate component from http://www.zend.com/en/products/studio/downloads.

PHP Web Page Profiling

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.

Note:

It's recommended that your local project structure reflect the project structure on your server.

See Profiling a PHP Web Page  for more information.

Note:

Your server must be running the Zend Debugger in order for remote debugging and profiling capabilities to function.
The Zend Debugger comes bundled with Zend Server, Zend Core and Zend Platform, but can also be downloaded as a separate component from http://www.zend.com/en/products/studio/downloads.

URL Profiling

Allows you to enter a URL to profile an application on a server. Only server files will be profiled, so the files do not need to exist locally in your Workspace.

 

See Profiling a URL for more information.

 

Once a Profile session has been executed (see Using the Profiler for more information on how to execute a profiling session), various views in the Profiling Perspective provide information on the performance of your script. See PHP Profile Perspective for more information on the various views.

 

Toolbar Profiling

Profile files and applications directly from your browser.

 

See Profiling Using the Zend Debugger Toolbar for more information.

 

 

Related Links

Related Links:

Working with the Profiler

Using the Profiler

Profiler Preferences

Using the Debugger

PHP Profile Perspective