Zend Server Z-Ray is a new technology that provides developers with real insight into their PHP code, allowing them to inspect, debug and optimize their pages, resulting in fast and stable applications.
Z-Ray monitors requests made to the Web server, and displays live and detailed information in a Web page component in your browser. This information includes: PHP functions, SQL queries, request variables, errors and warnings, server events, memory use, performance metrics, and more. Debugging and profiling sessions can be triggered in any integrated IDE directly from Z-Ray, facilitating quick troubleshooting and code optimization.
Z-Ray is displayed on any HTML-based Web page located on the Web server and open in a browser. The information in Z-Ray is displayed immediately as the page begins to load in the browser, and requires no further interaction or configuration.
All the information recorded by Zend Server and displayed in Z-Ray, is displayed for non-browser based requests as well. You can view information on API requests, web services, and requests made by mobile applications on the Z-Ray Live! tab.
What information does Z-Ray display?
Note:
If Zend Server has not been launched yet, Z-Ray's features are disabled and you will be prompted to launch Zend Server to enable its functionality.
Z-Ray comes bundles with extensions for off-the-shelf PHP applications and frameworks. Using these extensions, you gain deeper insight into how your code is performing on the application/framework level. These extensions work out of the box, and there are no further steps you need to take - simply open your application in a browser.
See the extensions for yourself on GitHub...
Panel |
Description |
Request |
Request-specific data (e.g. templates, methods and status) |
Plugin |
Information on ZF1 plugin properties |
View |
List of ZF1 views, their location, and helpers |
View Helpers |
List of ZF1 view helpers, arguments, and helper objects |
Request Object |
Detailed profiling of ZF1 request objects |
Panel |
Description |
Events |
List of ZF2 events, their source, duration and memory usage |
Response |
Response related data |
View Helpers |
List of ZF2 view helpers, their count and properties |
Modules |
List of ZF2 modules, their configuration and location |
Forms |
List of ZF2 forms, their properties and relevant class |
Version |
Information on the application version |
Config |
General configuration and user specific data |
Application Config |
Application configuration data: modules list, configuration paths, listeners |
Request |
Request-specific data (templates, methods and status) |
Panel |
Description |
Events |
List of Symfony events, their source, as well as the affected class |
Request |
Request-specific data (e.g. templates, methods and status) |
Config |
Information on application configuration, fields and values |
Bundles |
List of Symfony bundles and their location |
Forms |
List of used Symfony forms |
Security |
Information on security: enabled/disabled, access, user role |
Panel |
Description |
General Info |
General details on the WordPress configuration |
Cache Objects |
WordPress cached objects and their memory consumption |
Crons |
Frequency and scheduling information on WordPress tasks |
Hooks |
A view of WordPress hooks, including type and execution time |
Plugins |
List of added WordPress plugins |
Plugins Profiler |
List of activated WordPress plugins and their load time |
Theme Profiler |
Breakdown of theme functions and their execution time |
Panel |
Description |
Called Functions |
List of Drupal functions called, together with their parameters |
Loaded Modules |
List of loaded Drupal modules |
Retrieved Forms |
List of forms used on page |
Module Invoke |
List of actions performed for Drupal modules, and used hooks |
User Properties |
Details on current user |
Panel |
Description |
MVC Auth Events |
Information on MVC authentication events, including events name and result |
Identity Role |
Information on the current user |
Panel |
Description |
Packages |
A list of defined Composer packages, their data and requirements |
Class Map |
A list of all PHP classes that was included using composer |
Panel |
Description |
Events Log |
Log of all events that occurred during execution |
Laravel |
General configuration information |
Route |
Details on the action and class used, and entry and exit filters |
Session |
Information on Laravel session |
User Information |
Information on logged in users as read from the database |
Views |
Information on views used by the page |
Configurations |
Optional - reads configuration data from configuration files under 'apps/config'. |
Z-Ray is designed so that developers can easily add additional functionality. Using the built-in hooks, you can tap into Z-Ray's tracking mechanism, add Z-Ray panels, and extend the information displayed in existing Z-Ray panels.
Z-Ray extensions are simple PHP scripts that use new dedicated APIs that can trace any function or method call in your app/framework, tapping into the call and return, allowing you to easily extract any piece of information from the function’s context.
Z-Ray is displayed and activated when Zend Server is in Development mode. This mode is selected during the process of launching Zend Server (for more information on Zend Server launch profiles, see Launch Profiles).
If Zend Server was launched with a production profile, Z-Ray is not displayed by default, but can be manually enabled from the Administration | Settings page. Please note that enabling Z-Ray on a production server may have an effect on any deployed applications.
Additionally, the Z-Ray Secured Mode allows administrators to restrict access to Z-Ray according to specific IPs, base URLs, or a predefined time duration. Thus, pages can be selectively and securely analyzed by developers using Z-Ray while in production.
Z-Ray supports a seamless development process, enabling you to directly debug and profile your code in your favorite IDE. Use Z-Ray to identify the issue, and then trigger a debugging or profiling session in your IDE with just one click. For information on integrating with your IDE, see Debugging/Profiling .
Z-Ray is supported on all Web browsers and operating systems, though we recommend using Google Chrome for optimized performance. There are specific connectivity issues with some browsers, see Troubleshooting Connectivity Issues for more information.