Blackberry application - get application memory usage stats

我们两清 提交于 2019-12-11 06:42:39

问题


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:


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



来源:https://stackoverflow.com/questions/2418778/blackberry-application-get-application-memory-usage-stats

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!