Tamar
Tamar

Reputation: 2066

Blackberry application - get application memory usage stats

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?

Upvotes: 1

Views: 912

Answers (1)

Maksym Gontar
Maksym Gontar

Reputation: 22775

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 :)

Upvotes: 1

Related Questions