commit | 382a0106563ba5580639442d799179d0f1c23317 | [log] [tgz] |
---|---|---|
author | Yabin Cui <yabinc@google.com> | Wed Jul 11 17:13:02 2018 -0700 |
committer | Yabin Cui <yabinc@google.com> | Wed Jul 11 17:26:03 2018 -0700 |
tree | 2df7a38e0e583fa359c20a82c14c73cee00893fc | |
parent | 2a51901bd58eb671979bf9b6add46a38cdda8b0e [diff] |
simpleperf: dump maps only when needed in system wide recording. Currently simpleperf dumps maps for all processes before recording. It can take about 10s or longer. This patch avoids the overhead by switching to dump maps for a process when the first sample hits that process. Bug: 111270937 Test: run simpleperf manually, the preparation time for system wide Test: recording doesn't exceed 150ms. Test: run simpleperf_unit_test. Change-Id: I832ef9a9a67dd3a6a4ed97f276786e8e4aea3db4