Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find out if Android Studio is actually using the Intel HAXM accelerator?

I have Intel HAXM installed on my machine along with Atom image. When I fire-up emulator in Android Studio, don't see anything that would tell me if Intel HAXM is being utilized or not.

According to the screenshots on Intel's website, in Starting Android Emulation window in Eclipse, it show a message, informing that Intel HAXM is being utilized.

like image 339
newprint Avatar asked Aug 11 '14 20:08

newprint


2 Answers

If your emulator is running with HAXM, you'll see output like this in your run console in Android Studio, with the relevant line being the "HAX is working" bit:

Waiting for device.
/Users/sbarta/sdk/tools/emulator -avd x86-API10 -netspeed full -netdelay none

HAX is working and emulator runs in fast virt mode
Device connected: emulator-5554

enter image description here

Or, according to Intel's official Installation Instructions for Intel® Hardware Accelerated Execution Manager:

To verify that Intel HAXM is running, open a Command Prompt window with administrator privileges (Run as Administrator) and execute the following command:

sc query intelhaxm

If Intel HAXM is working, the command will show a status message indicating that the state is: "4 RUNNING".

like image 173
Scott Barta Avatar answered Sep 19 '22 04:09

Scott Barta


According to the Android Studio documentation you can run the following:

$ ./sdk/emulator/emulator -accel-check

And if you see the following you have it installed:

accel:
0
HAXM version 6.0.3 (3) is installed and usable.
accel
like image 32
Stunner Avatar answered Sep 19 '22 04:09

Stunner