diff options
author | David Srbecky <dsrbecky@google.com> | 2020-04-14 16:59:27 +0100 |
---|---|---|
committer | Christopher Ferris <cferris@google.com> | 2020-04-16 15:03:19 -0700 |
commit | a17c2b694ce53a484f534ba7abab7ec12cd4ffcc (patch) | |
tree | 9fbc74ee5582c15d71067201c46b7c5b3d554035 /trusty/coverage/coverage.cpp | |
parent | 8c6d5bf83c9551264932e8d4268870cc26567fed (diff) |
Optimize Memory::ReadString
This function is responsible for majority of CPU time in prefetto.
Reduce the number of memory reads (don't read strings byte-by-byte).
Update all calls of ReadString to include the third parameter to have
a max read.
Add an Elf creation benchmark since this function is on the elf
creation path.
Test: libunwindstack_unit_test
Change-Id: Ia36e1f1a5ba76c9e9f13c43fb9e3691dde7897f2
Diffstat (limited to 'trusty/coverage/coverage.cpp')
0 files changed, 0 insertions, 0 deletions