我正在尝试使用“android.test.PerformanceTestCase”接口(interface)测试 Android 应用程序的性能,谁能告诉我如何使用它...
我知道我可以使用Traceview工具来测试性能,但我想学习使用android提供的“android.test.PerformanceTestCase”接口(interface)。
如果我得到任何示例代码,它将非常有帮助
最佳答案
Download Android 源代码并在 frameworks/base/tests/AndroidTests/src/com/android/unit_tests
中查找。您会发现很多 PerformanceTestCase
示例。
关于使用 "android.test.PerformanceTestCase"接口(interface)进行Android性能测试,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2006056/