Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Monitoring SWT resources(How can I monitor user's resource usage of my SWT application ?)
Monitoring SWT resources [message #1486727] Tue, 25 November 2014 08:41 Go to next message
hortiz Mising name is currently offline hortiz Mising nameFriend
Messages: 96
Registered: July 2009
Member
Hi,

I want to add a kind of gauge in my SWT application to indicate the users the level of resource usage.
For each call to a resource constructor (new Label, new Text, etc), I increment a counter.
I also add a DisposeListener to decrement this counter.

I have two questions :

- Although some resources such as GC, Cursor or Dialog have a dispose method they don't have a addDisposeListener one... I don't understand why ?

- What is the maximum number of widgets (resources etc) ?

Thanks !
Helene


Re: Monitoring SWT resources [message #1505479 is a reply to message #1486727] Wed, 10 December 2014 04:30 Go to previous messageGo to next message
Niraj Modi is currently offline Niraj ModiFriend
Messages: 48
Registered: November 2013
Member
You could use Sleak/Spy tool for monitoring SWT widget leaks in your application, refer more details at: https://www.eclipse.org/swt/tools.php
Related article on Sleak: https://www.eclipse.org/articles/swt-design-2/sleak.htm

Note: Sleak can be used in standalone applications as well as via eclipse plugin(update site: http://www.eclipse.org/swt/updates/4.4 )

Regards,
Niraj

Re: Monitoring SWT resources [message #1512168 is a reply to message #1505479] Mon, 15 December 2014 14:06 Go to previous messageGo to next message
hortiz Mising name is currently offline hortiz Mising nameFriend
Messages: 96
Registered: July 2009
Member
Thanks for your help but it does give concrete answers to my two questions.
Re: Monitoring SWT resources [message #1513164 is a reply to message #1512168] Tue, 16 December 2014 09:23 Go to previous message
hortiz Mising name is currently offline hortiz Mising nameFriend
Messages: 96
Registered: July 2009
Member
Sorry what I wanted to say is : "Thanks for your help but it does NOT give concrete answers to my two questions."
Previous Topic:CSS animations in SWT.Browser not working
Next Topic:Popup menu, accelerators won't work
Goto Forum:
  


Current Time: Fri Apr 19 04:07:25 GMT 2024

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

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

Back to the top