simpleperf: replace InCloudAndroid() with runtime check.

On x86 and x86_64, it's likely to run on an emulator or vm without
hardware perf counters. It's hard to enumerate them all. So check
if hardware perf counters are available at runtime.

Bug: 192584167
Test: run simpleperf_unit_test
Change-Id: I38cc89bc7f81f8d6d6165a4b8f344c0660c10364
1 file changed