simpleperf: reduce load time of the report generated by report_html.py.

1. Add TimeLog class to measure load time.
2. In SampleTableView, add table contents gradually at idle time.
3. In FlameGraphViewList, draw 10 flamegraphs at a time and add a "more"
   button for the rest. It first draw the skeleton of the flamegraphs,
   then draw the details at idle time.
4. In FlameGraphView, first add all svg contents to a string array, then
   add the string array to the svgDiv. This is much faster than adding
   contents directly to the svgDiv.

When tested with a perf.data generated by system wide recording, the
load time is reduced from almost endless (2s for SampleTableView, others
for FlameGraphViewList) to about 1s.

Also fix a small error in report_html.py and clean up cdn links.

Bug: 109943459
Test: run report_html.py manually.
Test: run test.py TestExamplePureJava.test_report_html.

Change-Id: I737bf61080676f5935d6bd872d47f081347d1890
2 files changed