Code Tracing records execution activity in real-time. This provides an in-depth diagnostic tool that will allow you to drill-down to the function level to view actual performance related information and statistics.
In order to work with Code Tracing you first have to have the Code Tracing component installed and activated (see the Installation Guide for information on adding components and to see Working with Components for information on the components in your system).
This procedure describes how to define monitor rule settings to in addition to the event related information also collect trace information when the event is generated.
|
|
|
To set a monitor rule to save trace data:
|
The next time the event is triggered trace information for that specific occurrence will be collected. The trace information can be viewed in Monitor | Code Tracing or directly from the event (see important note below). |
Important Note:
A single issue can contain aggregated information about more than one instance of an occurrence. This information is also grouped according to when the event occurred. When Code Trace information is collected it is collected for a specific time and therefore will be associated to a specific group inside the event for more information see "Viewing Trace information Inside an Event".
This procedure describes how to manually run a code tracing on a specific URL. Running a code trace on a specific URL will capture the current activity at the time the trace was triggered.
|
|
|
To manually trigger code tracing on a specific URL:
|
The trace information will be collected and added to the list in the Code Tracing page. Running Code Tracing on Another MachineYou can run Code Tracing on another machine as long as the Zend Code Trace component is installed and running on it. However, when running a trace on a remote machine the trace information is collected on that machine therefore, Instead of running the trace from a remote machine always run a trace on the specific machine you need. If you do want to run a trace on a remote server after all, make sure that the server's IP is an allowed host in Server Setup | Debugger. |
There are two ways to view trace information according to how the trace was generated. Manually generated traces can be viewed in the Code Tracing page Monitor | Code Trace. Traces that were generated alongside an event can be viewed in the Code Tracing page Monitor | Code Trace and also from the issue's details.
This procedure describes how to view trace information that was collected at the time a monitor event was triggered.
Trace information for a monitor event is only collected if the specific event was defined to trigger a code trace.
|
|
|
To view trace information inside an event:
|
See Code Tracing Tree and Code Tracing Statistics for more information about the Zend Code Tracing view. |
This procedure describes how to view trace information for traces that were triggered manually or by an event.
The Code tracing view is populated after trace information has been collected either from an event or manually.
|
|
|
To view trace information:
|
Use the Code Tracing Tree and Code Tracing Statistics tabs to navigate through the information. |
This procedure describes how to export trace information. Exported trace information can be used to be imported into Zend Studio for further diagnostic information when you do not have access to the server or if you have been sent trace information from another person.
|
|
|
To export Zend Code Trace information:
|
The Zend Code Tracing file can be sent to any Zend Server user and imported as an event file into Zend Studio. For more information on how to import a trace file into Zend Studio see the Zend Studio Help. |
This procedure describes how to delete trace information.
|
|
|
|
The trace information will be permanently deleted. New trace information for the same URL will continue to be recreated as long as the setting in the rule is not changed. To change the rule's settings see "Setting a Monitor Rule to Run a Code Trace". |
|
|
|
Related Links: Code Tracing Zend Code Tracing - Configuration Directives |
|
|
© 1999-2013 Zend Technologies, Ltd. All rights reserved.