It turns out that using this command line after emulator is booted:
adb shell “cat /proc/meminfo”
I'm able to see that the RAM size allocated for emulator is exactly what I put in the command line:
emulator -avd myEmulator -m ${RAM_SIZE}