summaryrefslogtreecommitdiff
path: root/taskstats
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2021-07-22 13:33:24 -0700
committerYabin Cui <yabinc@google.com>2023-06-02 10:58:09 -0700
commit1bc8ecbb9b94634f8e0f5960e79c3c21c941fa58 (patch)
treebdc4645891f89abd11e0f8dcb89f51dedcbef087 /taskstats
parentb19afd3d01b26ae513c87e23492cb0c8e7084fa9 (diff)
downloadextras-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