c5f4f7e30bf4d1becffbefe99cc8b7a0f76cdb8a |
|
30-Nov-2016 |
Yabin Cui <yabinc@google.com> |
simpleperf: add binary_cache_builder script. To report on host, we need to pull binaries from device to host. binary_cache_builder.py is used to pull needed binaries automatically. Other changes: Move common functions to utils.py. Move libsimpleperf_report.so to proper directory, so we can add other host shared libraries and target binaries in the future. Bug: http://b/32834638 Test: run binary_cache_builder.py for N, O devices, both root and non-root. Change-Id: Ifa8931842087ed43d1e530e40ca0254cbf9ea3a9
/system/extras/simpleperf/scripts/report_sample.py
|
4ff9c6fd83baa05effade39a2a000b1b233fa371 |
|
29-Nov-2016 |
Yabin Cui <yabinc@google.com> |
simpleperf: improve script interface. 1. In ReportLib, return structure instead of pointer to structure. So users can use 'sample' instead of 'sample[0]', as in report_sample.py. 2. For python3, convert char pointer to str type. Because str is more convenient to use. Bug: http://b/32834638 Test: run simpleperf_report_lib.py and report_sample.py. Change-Id: Iee8c3570e82104c5dd02f3f657ac143d1fdc2233
/system/extras/simpleperf/scripts/report_sample.py
|
b2465ad8bae68531dd9dbed88be469612cd7229a |
|
17-Oct-2016 |
Daniel Friederich <dfriederich@magicleap.com> |
Support to use kallsyms Also: - Adapt to use with Python 3 (where str is a wide type but our C API's expect 8 bit character strings) - Use OS specific so names (e.g. simpleperf_report.dll on Windows) - On Windows as we use mingw to build, preload libwinpthread-1.dll. Test: with manual incovation using report_sample.py Change-Id: Id973c463608c520b8eec229026c74dc5e8144cf8
/system/extras/simpleperf/scripts/report_sample.py
|
0e48e18171e17c76834916c2c87360195edf8667 |
|
12-Oct-2016 |
Daniel Friederich <dfriederich@magicleap.com> |
Support for multiple instances Allows to use separate instances for separate perf.datai files (and possibly also separate instances on separate threads) Test: Tested by running report_sample.py Change-Id: I0ebdb3c650a4540f07237b515d451d69ec3810e6
/system/extras/simpleperf/scripts/report_sample.py
|
a447c0d5f1d5227af30c0cbb4320ad878bd78c43 |
|
26-Aug-2016 |
Yabin Cui <yabinc@google.com> |
simpleperf: add python report interface on linux. 1. Build libsimpleperf_report.so on host, which exports functions to access samples. 2. Add simpleperf_report_lib.py to wrap libsimpleperf_report.so. 3. Write report_sample.py to test simpleperf_report_lib.py. The output format of report_sample.py matches the need of building FlameGraph. Bug: http://b/31069528 Test: run report_sample.py on perf.data. Test: run simpleperf_unit_test. Change-Id: I4949f8ea506f12101a9c4fb4c896957c96676853
/system/extras/simpleperf/scripts/report_sample.py
|