Section C.9. Running the Profiler


C.9. Running the Profiler

Zend Studio's integrated Performance Profiler helps you to optimize overall performance of your applications. Zend Profiler detects 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.

The Zend Studio Profiler performs the following:

  • Monitors the calls to functions

  • Monitors the number of times that a section of code is executed

  • Calculates the total time spent on execution

  • Generates reports that reflect the time spent on execution

  • Graphically displays information of time division

  • Enables comparison statistics between functions

  • Enables viewing the file from the server just by clicking on any function

  • Shows the hierarchical structure of the functions involved in the script execution

Note

Be sure to install the Zend Debugger on the server of the URL.


To run the profiler:

1.

From the Tools menu, select Profile URL.

2.

Accept the default URL or change and click OK. The browser presents the requested page and after a few seconds (during which the Profiler accumulates information), the Profiler Information window appears.

The Profiler user interface contains three tabs:

  • Profiler Information. Provides general information on the profiling duration and date, number of files constructing the requested URL, and more. In addition, it displays a Time Division Pie Chart for the files in the URL.

  • Function Statistics. Provides you with the list of files constructing the URL and detailed information on functions in the files.

  • Call Trace. Provides a hierarchical display of functions according to process order, enabling you to jump to the function, view the function call, function declaration, details, and more. The Call Trace tab supports the following sorts: Sort By Time, Sort By Original Order, Collapse All, Expand All, View Function Call, View Function Declaration, and View Function Statistics.



    PHP 5 Power Programming
    PHP 5 Power Programming
    ISBN: 013147149X
    EAN: 2147483647
    Year: 2003
    Pages: 240

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net