inspectIT UI can be inspected using the Sleak Tool for SWT. This tool allows to monitor the creation and disposal of swt graphic resources.
Setup
- Download the SWT Tool plug-in from update site
- In inspectIT.product file, in section Dependencies add the org.eclipse.swt.tools plugin
- Click on Add Required Plug-ins to resolve all needed plugins for the SWT tools
- Delete all existing launch configurations for the inspectIT
- Create new launch configuration by clicking on the Debug an Eclipse application in the inspectIT.product
- Go to the Launch configuration Tracing option and enable tracing
- On the same tab, enable the org.eclipse.uipackage on the left side, and on the right side enable:
- debug
- trace/graphics
- Additionally there is a need to add the Sleak view in the inspectIT, with one of this two options:
- Add the view with ID org.eclipse.swt.tools.views.SleakView to the Perspective class
Create a main menu item like this:
<command commandId="org.eclipse.ui.views.showView" label="Sleak" style="push"> <parameter name="org.eclipse.ui.views.showView.viewId" value="org.eclipse.swt.tools.views.SleakView"> </parameter> </command>
- Start inspectIT by running the modified lunch configuration