Working with the Analyzer Extension sample
This sample demonstrates the analyzer extension which can be used to
associate views with trace association types. For example, the analyzer extension can
be used to associate the Log view with the logging agent trace association type.
If you have not already done so, create the example by File >
New > Example... > Analyzer Extension Sample.
The sample contains code that implements a simple analyzer extension for the
logging agent type association and profiling agent type association. An action
named Open Analyzer Extension Sample View is available from the context
menu of the logging agent and profiling agent. Right clicking on any log file or
profiling agent and selecting Open With will show this action.
The action opens a sample view, which shows
the name of the object selected.
To see the trace associations, select Window >
Preferences.. and view the Trace Associations preference page
under Profiling and Logging. Select Logging Agent under trace types. The new sample view
is added under Views. Select Profiling Agent under
trace types. The new sample view is added under Views.
The following procedure outlines the steps needed to view the
contributions to the logging agent:
- Launch an instance of a runtime workbench by selecting Run > Run As >
Eclipse Application. You should see the Trace Associations preferences as described above.
- Switch to the Log Navigator navigator view in the
Profiling perspective.
- Import a log file into the workspace so that a log becomes visible in the
log navigator.
- Right-click on the log file. Note the presence of the
Open Analyzer Extension Sample View in the context menu under Open With.
The following procedure outlines the steps needed to view the
contributions to the profiling agent:
- Launch an instance of a runtime workbench by selecting Run > Run As >
Eclipse Application. You should see the Trace Associations preferences as described above.
- Switch to the Profiling Monitor navigator view in the
Profiling perspective. If not already visible, turn to the Distributed Layout
view by selecting the drop-down arrow in the top right corner of the view and selecting
Distributed Layout.
- Populate the Profiling Monitor view by either profiling
an application or importing a profiling file. The navigator
should contain a Project, Monitor, Node, Process, and an Agent.
- Right-click on a monitor, node, process, or agent. Note the
presence of the Open Analyzer Extension Sample View in the context
menu under Open With.
(C) Copyright IBM Corporation 2005. All Rights Reserved.