commit | 900ea0706e16bd2afc99f95a56b67b364800ad60 | [log] [tgz] |
---|---|---|
author | Yabin Cui <yabinc@google.com> | Tue Mar 06 11:35:22 2018 -0800 |
committer | Yabin Cui <yabinc@google.com> | Tue Mar 06 11:35:22 2018 -0800 |
tree | e8dbf7301ce48eb51299fbe8c17555e29d98620d | |
parent | 8e57dc74b071793296389d0d936f385d0949df76 [diff] |
simpleperf: fix calculating cpu frequency. When calculating cpu frequency and other frequencies, use time running on cpu instead of total passed time. This is to be consistent with linux-tools-perf. This is reported in https://github.com/android-ndk/ndk/issues/644. Bug: none Test: run simpleperf_unit_test. Change-Id: Ic385939c189fb86c6b3c648d2c0a4e9636c13c93