OSDN Git Service

simpleperf: support profiling native programs in app_profiler.py.
authorYabin Cui <yabinc@google.com>
Wed, 2 Aug 2017 18:55:04 +0000 (11:55 -0700)
committerYabin Cui <yabinc@google.com>
Thu, 3 Aug 2017 21:52:52 +0000 (14:52 -0700)
commit58d10880d69339f18faeb387de34619ec747749d
tree40f9b9283c62f977121e21fddcea1f395f103193
parent76163e6103d6854b89f4916772a838573657e34a
simpleperf: support profiling native programs in app_profiler.py.

This is a preparation of using app_profiler.py in inferno.

In app_profiler.py:
Add -np option to profile native programs like surfaceflinger.
Add -cmd option to profile command lines.
Add --arch option to set the app arch, because we don't guess the app arch
when profiling command lines.
Add corresponding tests in test.py.

Also improve the way of detecting whether the device supports trace-offcpu.

Bug: http://b/63006886
Test: run test.py.

Change-Id: Id899063d9a94beec67b22fd7710cda7a438557fb
simpleperf/scripts/annotate.py
simpleperf/scripts/app_profiler.py
simpleperf/scripts/binary_cache_builder.py
simpleperf/scripts/report.py
simpleperf/scripts/test.py
simpleperf/scripts/utils.py