commit | b7f481f59126456b0e708a76f40fa88224f3531b | [log] [tgz] |
---|---|---|
author | Yabin Cui <yabinc@google.com> | Fri Oct 23 19:48:42 2015 -0700 |
committer | Yabin Cui <yabinc@google.com> | Fri Oct 23 20:13:12 2015 -0700 |
tree | 6bc5e959a21eaf7cc62e5ec64cdc503463a2fb71 | |
parent | 6fea45816ae5ce22b9f186a1fc4b447a42ece10f [diff] |
Simpleperf: Don't load whole perf.data into memory. perf.data can be too large to be loaded into memory. To avoid this, use fread() instead of mmap() to read perf.data, and always use RecordCache to sort records. Fix unit tests failure caused by previous change. Bug: 25194400 Change-Id: If29dc0bb0ed992ba34202c2cb1a204a1d9123b7a