模拟cpu使用率单声道为Android [英] simulate cpu usage in mono for Android

查看:163
本文介绍了模拟cpu使用率单声道为Android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要写在单为Android(安卓+ C#​​.NET)的应用程序来模拟特定持续稳定的CPU使用(例如:30%,50%,70%),持续2秒。
我所指向下面的链接
模拟稳定的CPU负载和尖峰
在这里,我可以能够稳系统CPU,但同样的操作无法在Android操作系统做。
任何帮助会有所帮助。

I need to write an application in mono for android(Android+c#.net) to simulate steady cpu usage for certain duration(eg:30%,50%,70%) for 2 sec. I refered below link Simulate steady CPU load and spikes here i can able to steady the system cpu but the same operation not able to do in Android os. Any help can be helpful.

在此先感谢。

推荐答案

我做这似乎对我的三星Galaxy S2,并在仿​​真器正常工作的示例项目

I made a sample project which seems to work fine on my Samsung Galaxy S2 and in the Emulator.

https://github.com/Cheesebaron/MonoDroid.CPULoader

它只是使用了资源链接到您。

It just uses the resources you linked to.

这篇关于模拟cpu使用率单声道为Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆