04-13-2011 07:43 AM
I am a new bee in BB development and I am trying to get the memory and CPU usage figures of a running application from my application.
Can anybody help me out with this? is it possible to get such information for a particular application/process in blackberry ?
Any tip will be a great help.
04-13-2011 08:35 AM
The Memory class can give you info about the overall system resources usage.
I am not aware of anything which could give you info about a particular application.
04-13-2011 09:01 AM
Well I found how to get the process id for application but no more than that.
Does your application really need to know the resources used by another application or you just want to keep track whether there are enough resources? If it is the latter case you might find useful something from the net.rim.device.api.lowmemory package.
04-13-2011 09:49 AM
you might consider using also the following methods:
04-13-2011 05:10 PM
Just to confirm that I too am not aware of any way of finding out the memory consumption or CPU consumption of a specific application.
During development I generally profile anything that I think might be resource intensive, to be sure it won't impact the BB processing too much.
04-14-2011 03:21 AM
Thanks everyone for your replies.
I guess it wont be possible from a different application to retrieve such information about any particular application.
So, is there a way to get these figures for an application using the application code itself..i mean from inside the application...? can i get this information for -say , the current screen ?