simpleperf: use Addr2Nearestline in annotate.py.
It contains below changes:
1. Move SourceFileSearcher from report_html.py to utils.py.
2. Use Addr2Nearestline and SourceFileSearcher to replace code finding
source lines and files in annotate.py.
3. Use Addr2Nearestline to replace code finding source lines in
pprof_proto_generator.py.
4. Update tests for SourceFileSearcher and Addr2Nearestline.
5. Add options to run selected tests.
Bug: none
Test: run test.py.
Change-Id: Ifed8b798b243f344ac9baab478862ac8b3bb56f4
5 files changed