simpleperf: use libunwindstack directly for unwinding.
Using BacktraceMap needs to rebuild all maps when some map is
changed. For example, in a system wide recording, about 7% cpu time
in unwinding is used for allocating and freeing map space. By switching
to unwindstack::Maps and update maps when some map is changed, It can
reduce about 10% cpu time in unwinding.
Also set max unwinding frames to 512.
Also remove deprecated unwinding error code.
Bug: 110923759
Test: run simpleperf_unit_test.
Change-Id: I9bd8c54e5087c33de2929768a83e749240ddb203
5 files changed