内存压力测试工具?

发布于 2024-12-10 02:18:06 字数 781 浏览 0 评论 0原文

Android 有内存压力测试工具吗?需要在真实设备上工作。

我正在开发一个使用基于 Ant+ 的传感器的应用程序。 http://www.thisisant.com/。我想将事情分开,这样我就有一个服务来处理 Ant 无线电并广播可以被多个应用程序接收的更高级别的意图。我希望将此服务与应用程序的其余部分分开,因为此功能实际上应该由标准 Ant API 提供。

我的主要应用程序有一个数据记录服务和显示数据的活动。当用户可能正在做其他事情时,数据记录需要继续,从而导致内存问题。

因此,我有多个服务和应用程序,并且想要尝试最佳设置,例如远程/本地服务、共享进程等。我希望能够以受控的方式在低内存环境下测试事物。因此需要一个记忆压力工具。

我做了一些谷歌搜索,但没有发现任何令人惊讶的东西,因为 Android 手机是内存恐慌设备,并且有一些奇怪的行为,所以好的测试工具似乎应该存在。

更多信息。

我今天发现了这个 http://forum.xda-developers.com/showthread.php ?t=622666 关于如何在已 root 的手机上配置 taskkiller 的讨论。修改配置值以人为地减少系统拥有的内存可能是更容易进入低内存环境的一种方法。我编写了一个简单的应用程序,它以可配置的方式分配内存,但是在单个进程中可以轻松分配的内存量是有限的。

Are there any memory stress testing tools for Android? Need to work on real devices.

I am working on an app using Ant+ based sensors. http://www.thisisant.com/. I want to split things up so I have a service dealing with the Ant radio and broadcasting higher level intents that can be picked up by multiple apps. I want to keep this service seprate from the rest of my application as this functionality should realy be being provided by the standard Ant Apis.

My main aplication has a data logging service and activities to desplay the data. The data logging needs to continue while the user may be doing somthing else and thus causing memory issues.

So I have multiple services and Apps and want to experiment with what the best setup is e.g. remote / local rervices, sharing processes etc. I want to be able to test things under low memory senarios in a controlled sort of a manner. Hence the need for a memory stress tool.

I have done some googeling and have not turned anything up which is suprising as Android phones are memory scares devices and have some quirky behaivure so good testing tools seem like somthing that should exist.

Further Information.

I found this today http://forum.xda-developers.com/showthread.php?t=622666 A discussion on how the taskkiller can be configured on a rooted phone. Modifying the configurationv values to artificialy cut down the memory the system has may be a way of getting into the low memory senario more easaly. I have written a simple app that allocates memory in a configurable way, but there is a limit as to how much you can easaly allocate in a single process.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

她如夕阳 2024-12-17 02:18:06

您可以尝试这个应用

https://play.google.com /store/apps/details?id=derekwilson.net.rameater

我有偏见(我写的),但它工作正常,并且被许多开发人员使用。不需要特殊权限。

You could try this app

https://play.google.com/store/apps/details?id=derekwilson.net.rameater

I am bias (I wrote it) but it works fine and is being used by a number of devs. No special permissions are required.

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