Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sleak SWT tool, Device is not tracking resource allocation

Tags:

testing

swt

I'm having trouble in testing an RCP application with Sleak because it does not display anything, it only shows the message "WARNING: Device is not tracking resource allocation". I've setup Sleak from this tutorial and I don't know what's wrong. Does anyone know a solution for this? Thanks in advance.

like image 949
Hypnus Avatar asked Dec 05 '25 10:12

Hypnus


2 Answers

Do you have the correct version? Can you see the sleak view in your RCP-application? If not make sure it's in your launch configuration. Also double check that you have set the

org.eclipse.ui/debug=true org.eclipse.ui/trace/graphics=true

correct in the tracing tab. There are properties with similar names.

like image 175
Kire Haglin Avatar answered Dec 07 '25 09:12

Kire Haglin


You can write

org.eclipse.ui.internal.misc.Policy.DEBUG_SWT_GRAPHICS = true;
org.eclipse.ui.internal.misc.Policy.DEBUG_SWT_DEBUG = true;

before

Display display = PlatformUI.createDisplay();

This will create in Workbench.createDisplay() method new Display with data tracking.

like image 20
Roman Avatar answered Dec 07 '25 08:12

Roman



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!