Locally Profiling a PHP Script

This procedure describes how to Profile a PHP Script from your workspace using Zend Studio 's internal debugger:

 

 

Instructions on how to complete a procedure

To locally Profile a PHP Script:

  1. Click the arrow next to the Profile button profile_icon.png on the toolbar and select Open Profile Dialog -or- from the main menu go to Run | Open Profile Dialog -or-right-click  in PHP Explorer view and select Open Profile Dialog.

  2. A Profile dialog will appear.

profile_dialog_local.png

Profile Configuration Dialog

  1. Double-click the PHP Script option to create a new Profile configuration.

  2. Enter a name for the new configuration.

  3. Ensure that the PHP Executable setting is selected under the Debugger Location category.

  4. Select the required PHP executable.

  5. Under PHP File, click Browse and select the required file.

  6. Click Apply and then Profile.

  7. A confirmation dialog will be displayed asking whether you want to open the Profiling Perspective.
    Click Yes. (If you would like the Profiling Perspective to open by default in the future, mark the 'Remember my decision' checkbox.)

The Profiling Perspective will open, displaying the Profiling Monitor window with various Profiling views.

See PHP Profile Perspective for more on the information displayed once a profile session has been run.

Note:

If the file contains 'include' or 'require' calls to files which are not contained within the project, you must add them to the project's Include Path in order to simulate your production environment.

 

 

link_icon.png

Related Links:

Using the Profiler
Profiling a PHP Script

Remotely Profiling a PHP Script

Profiling a PHP Web Page

Profiling a URL

Profiling

Working with the Profiler