黑莓 XMPP 消息

发布于 2024-12-04 20:57:13 字数 348 浏览 2 评论 0原文

制作了一个支持 XMPP 的 Blackberry 应用程序,用于为用户接收实时消息,预计最终用户在桌面 ERP 系统中发生的一些关键事件会给顶级业务用户带来推送消息的感觉。

好吧,让我去解决我的疑问..

  1. Sockettimeout,最大值为 2 分钟.. 通过侦听连接失败并重新连接来处理.. 这会导致 CPU 使用率高吗?
  2. 使用空闲套接字连接侦听 xmpp 消息...这会导致高 CPU 使用率...进而导致高电池消耗和任何性能下降..
  3. 我们是否有任何工具可以识别设备或模拟器上的 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..

  1. Sockettimeout, max is 2 mins..handled by listening for the connection failure and getting reconnected..will this cause high CPU usage?
  2. Listening for xmpp messages with idling socket connection...will this cause high CPU usage..in-turn high battery consumption and any performance degradation..
  3. 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

拥抱我好吗 2024-12-11 20:57:13

最后,我能够通过移植在 6.0 操作系统上的 BB Simulator 获得一些关于我的应用程序的 CPU 使用情况的线索,它清楚地显示了应用程序活动期间的 CPU 使用情况。

在 OS 6.0 中,您可以在“选项”->“选项”下找到此选项。设备->应用程序管理。

  1. 在空闲套接字连接期间,CPU 消耗为 0%。
  2. 当消息通过 XMPP 套接字到达时,CPU 消耗将上升到不到 1% 到 1%。
  3. 套接字超时后重新连接时消耗CPU的标准是7%。

平均消耗量非常少,希望我的应用程序不会耗尽我的客户的电量:)。

希望这个细节能够在应用程序性能方面对其他人有所帮助。

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.

  1. During idling socket connection 0% CPU consumption.
  2. When a message arrives through XMPP socket consumption goes upto less than 1 to 1% CPU.
  3. During reconnection after socket timeout consumption takes standard of 7% CPU.

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文