commit | f53f7161dbf6f29f9b6e11333bbb64ea93ef9913 | [log] [tgz] |
---|---|---|
author | Yabin Cui <yabinc@google.com> | Fri Jun 19 15:16:31 2020 -0700 |
committer | Yabin Cui <yabinc@google.com> | Fri Jun 19 16:06:11 2020 -0700 |
tree | 1d16b802fd86bf0c8c9ba70e19e3c6e2f5aecf88 | |
parent | 4d5330155d5e873d81e3764107c17a7228d99c0e [diff] |
simpleperf: add --sort option in stat cmd. In stat cmd, if --per-thread or --per-core is used, we need to sort entries belong to one event. So add --sort option to select sort keys (like in report cmd). Also make the default sort key to sort by cpu before sorting by count. Also adding cpu column in csv output when --per-core is used. Bug: 159159465 Test: run simpleperf_unit_test. Change-Id: I7d711c86ae3282cc40bdb8662f06f8058a205028