views:

232

answers:

1

I'm trying to get the memory usage statistics (RAM, Flash and object handles) specific to our application, to be displayed on the device (not through the profiler). I've been using the Memory class to track general memory usage, but could not find a way to get the specific memory info.

Is there a way to get this information from the Blackberry? Maybe using the application's process id?

+1  A: 

another one Runtime but also gives total mem stats...

what you can do with module is get it's code size CodeModuleManager.html#getModuleCodeSize(int)

another tip is to compare memory statistic on app start and after main screen will be presented

also you could measure size of each object in application Sizeof for Java - Object sizing revisited

but all this activity itself will change performance :)

Max Gontar
Thanks Max for the tips! I guess I'll stick to profiling and comparing general stats :)
Tamar
You're welcome!
Max Gontar