黑莓 XMPP 消息
制作了一个支持 XMPP 的 Blackberry 应用程序,用于为用户接收实时消息,预计最终用户在桌面 ERP 系统中发生的一些关键事件会给顶级业务用户带来推送消息的感觉。
好吧,让我去解决我的疑问..
- Sockettimeout,最大值为 2 分钟.. 通过侦听连接失败并重新连接来处理.. 这会导致 CPU 使用率高吗?
- 使用空闲套接字连接侦听 xmpp 消息...这会导致高 CPU 使用率...进而导致高电池消耗和任何性能下降..
- 我们是否有任何工具可以识别设备或模拟器上的 APP 的 CPU 和电池消耗?
请帮帮我...
Rgds 巴拉吉
Made an Blackberry application with XMPP backed for receiving real-time messages for the users, expected to give a feel like push message to the top business users for some key events happens in desktop ERP system by the endusers.
Ok let me go to my doubt..
- Sockettimeout, max is 2 mins..handled by listening for the connection failure and getting reconnected..will this cause high CPU usage?
- Listening for xmpp messages with idling socket connection...will this cause high CPU usage..in-turn high battery consumption and any performance degradation..
- Do we have any tool to identify the CPU and battery consumption by the APP on device or simulator?
Please help me out...
Rgds
Balaji
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最后,我能够通过移植在 6.0 操作系统上的 BB Simulator 获得一些关于我的应用程序的 CPU 使用情况的线索,它清楚地显示了应用程序活动期间的 CPU 使用情况。
在 OS 6.0 中,您可以在“选项”->“选项”下找到此选项。设备->应用程序管理。
平均消耗量非常少,希望我的应用程序不会耗尽我的客户的电量:)。
希望这个细节能够在应用程序性能方面对其他人有所帮助。
Finally I am able to get some clue of CPU usage of my app through BB Simulator ported on 6.0 OS, clearly its show the CPU usage during the application activities.
In OS 6.0 you can findout this option under Options -> Device -> Application Management.
On the average very less consumption, hope my apps wont drain my customers batter :).
Hope this detail will help others in the app performance point of view.