简体   繁体   English

在VirtualBox上运行的Android模拟器与真实设备

[英]Android emulator running on VirtualBox vs. real device

I've developed an Android application and I'm running it on a android virtual machine in order to get a faster execution of my application, but how can I compare the virtual emulator performances to those of a real device? 我已经开发了一个Android应用程序,我在Android虚拟机上运行它以便更快地执行我的应用程序,但是如何将虚拟仿真器性能与真实设备的性能进行比较?

Thanks 谢谢

the virtualbox is just an emulater. virtualbox只是一个emulater。 it wont carry out the application's full preformance, as it has to go through multiple layers of software. 它不会执行应用程序的完整性能,因为它必须通过多层软件。 for testing out apps, a real android device is necassesary. 对于测试应用程序,一个真正的Android设备是necassesary。

This answer may not be what your looking for. 这个答案可能不是你想要的。 I dont think you can compare performance between an emulator and any real device. 我不认为你可以比较模拟器和任何真实设备之间的性能。 Firstly because your software isnt running on the target hardware. 首先是因为您的软件没有在目标硬件上运行。 The emulator may be doing all sorts of additional things to make it look like that hardware. 模拟器可能会做各种其他事情,使其看起来像硬件。 there will be layers of software running your software generally making your programme run slow. 将运行您的软件的软件层通常使您的程序运行缓慢。

The best thing you could do is do some performance profiling https://stackoverflow.com/questions/2713940/eclipse-java-profiler which would show you where bottle necks are and give you some idea of performance. 您可以做的最好的事情是进行一些性能分析https://stackoverflow.com/questions/2713940/eclipse-java-profiler ,它会告诉您瓶颈的位置,并让您了解性能。

There's no real substitute for running on the target hardware. 在目标硬件上运行没有真正的替代品。 emulation will show you your software is functionally working but it may hide timing bugs it you have time critical code. 仿真将向您显示您的软件在功能上有效,但它可能会隐藏时间错误,因为您有时间关键代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM