diff options
author | Yabin Cui <yabinc@google.com> | 2021-07-22 13:33:24 -0700 |
---|---|---|
committer | Yabin Cui <yabinc@google.com> | 2023-06-02 10:58:09 -0700 |
commit | 1bc8ecbb9b94634f8e0f5960e79c3c21c941fa58 (patch) | |
tree | bdc4645891f89abd11e0f8dcb89f51dedcbef087 /taskstats | |
parent | b19afd3d01b26ae513c87e23492cb0c8e7084fa9 (diff) | |
download | extras-1bc8ecbb9b94634f8e0f5960e79c3c21c941fa58.tar.gz |
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: 284801306
Test: run simpleperf_unit_test
Change-Id: I38cc89bc7f81f8d6d6165a4b8f344c0660c10364
(cherry picked from commit 1f6f51aee77235b1fb374a917f0b46c9c09f0933)
Diffstat (limited to 'taskstats')
0 files changed, 0 insertions, 0 deletions