OSDN Git Service

simpleperf: fix inferno and test content of report.html.
authorYabin Cui <yabinc@google.com>
Mon, 14 Aug 2017 23:35:10 +0000 (16:35 -0700)
committerYabin Cui <yabinc@google.com>
Mon, 14 Aug 2017 23:35:10 +0000 (16:35 -0700)
commitd3c40e701e2638596bf8bd2d4f8da746e005e144
treecc39387e06cbff6b230a026edd3a091a88a5acfb
parent78b3cc838795ec468721f896e92bba1a9967dd53
simpleperf: fix inferno and test content of report.html.

Inferno uses sample count to decide the width of each method,
but this is not accurate. Fix it by using event count instead.

Besides that, refactor inferno.py a little, get record cmd
and device info from perf.data, and test content of report.html
generated by inferno.

Also fix a flakey test TestExamplePureJava.test_app_profiler_with_ctrl_c.

Bug: http://b/64035530
Test: run test.py.
Change-Id: Ia57fcbd28b4242b4251b063bd38a58da7b93eba0
simpleperf/scripts/inferno/data_types.py
simpleperf/scripts/inferno/inferno.py
simpleperf/scripts/inferno/script.js
simpleperf/scripts/inferno/svg_renderer.py
simpleperf/scripts/test.py