Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Extending Eclipse monitoring, profiling, and testing functions
Previous Page Home Next Page

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:

  1. Launch an instance of a runtime workbench by selecting Run > Run As > Eclipse Application. You should see the Trace Associations preferences as described above.
  2. Switch to the Log Navigator navigator view in the Profiling perspective.
  3. Import a log file into the workspace so that a log becomes visible in the log navigator.
  4. 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:

  1. Launch an instance of a runtime workbench by selecting Run > Run As > Eclipse Application. You should see the Trace Associations preferences as described above.
  2. 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.
  3. 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.
  4. 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.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire