Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Tracking resource allocation with Eclipse 3.0
Tracking resource allocation with Eclipse 3.0 [message #260783] Mon, 12 July 2004 15:58 Go to next message
James Willans is currently offline James WillansFriend
Messages: 303
Registered: July 2009
Senior Member
I have a feeling that my RCP app is leaking resources, and I'd like to do
some diagnostics to try and pin down where from. I understand that Sleak
should help me in doing this. However I'm having great difficulty getting
Sleak to provide me info using Eclipse 3.0. I can see the Sleak view, but
pressing the buttons report "Warning: Device is not tracking resource
allocation".

Prompted by replies to previous newsgroup messages, I have tried the
following:

1) Set Device.DEBUG to true prior to the display being created.

2) Included org.eclipse.swt and org.eclipse.swt.win32 in my workspace.

3) Set tracing on org.eclipse.ui.

None of these work and the same report is given from the Sleak view.

Does anyone have any suggestions of a) how I can get Sleak working; or b)
an alternative method for tracing resource allocation and deallocation
within the context of an Eclipse 3.0 RCP app.

Many thanks.

James
Re: Tracking resource allocation with Eclipse 3.0 [message #261469 is a reply to message #260783] Wed, 14 July 2004 14:27 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
James,

I'm surprised that suggestion #1 didn't work for you, as I tried with a
small snippet (though not an RCP app) and it set the behaviour properly.
Try the following when creating your display, as an alternative means of
setting the tracking variable:

DeviceData data = new DeviceData ();
data.tracking = true;
data.debug = true;
Display display = new Dipslay (data);

Grant

"James Willans" <jwillans@cs.york.ac.uk> wrote in message
news:ccucec$l3k$1@eclipse.org...
> I have a feeling that my RCP app is leaking resources, and I'd like to do
> some diagnostics to try and pin down where from. I understand that Sleak
> should help me in doing this. However I'm having great difficulty getting
> Sleak to provide me info using Eclipse 3.0. I can see the Sleak view, but
> pressing the buttons report "Warning: Device is not tracking resource
> allocation".
>
> Prompted by replies to previous newsgroup messages, I have tried the
> following:
>
> 1) Set Device.DEBUG to true prior to the display being created.
>
> 2) Included org.eclipse.swt and org.eclipse.swt.win32 in my workspace.
>
> 3) Set tracing on org.eclipse.ui.
>
> None of these work and the same report is given from the Sleak view.
>
> Does anyone have any suggestions of a) how I can get Sleak working; or b)
> an alternative method for tracing resource allocation and deallocation
> within the context of an Eclipse 3.0 RCP app.
>
> Many thanks.
>
> James
>
>
Previous Topic:SunOS
Next Topic:files without any project?
Goto Forum:
  


Current Time: Thu Sep 26 20:02:32 GMT 2024

Powered by FUDForum. Page generated in 0.02594 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top