commit | b378ae1485bd120e4e48057a9f7ca6b395fb1126 | [log] [tgz] |
---|---|---|
author | Wiwit Rifa'i <wiwitrifai@google.com> | Wed Jun 02 15:52:04 2021 +0800 |
committer | Wiwit Rifa'i <wiwitrifai@google.com> | Tue Jun 15 20:12:19 2021 +0800 |
tree | c84ead01e33af7e55c66964a40ba51f6c4617e8d | |
parent | 45ffbbd381ad4ccf68c73e46e477ae5bf4074a0c [diff] |
metrics: add avg used power to android_powrails The android_powrails currently only shows the accumulated energy since device boot. Meanwhile, we want to know the power impact only during the tracing period while doing some certain use cases. So, we want to add the average used power between the first and the last sampled energy data in miliwatt (mw). Test: tools/diff_test_trace_processor.py <trace_processor_shell> \ --trace-filter='android_startup_powrails' Test: <trace_processor_shell> --run-metrics android_powrails \ <perfetto_trace> Change-Id: I31d57424840a69d8b0e114edabc8317e59f8f3ca
Perfetto is a production-grade open-source stack for performance instrumentation and trace analysis. It offers services and libraries and for recording system-level and app-level traces, native + java heap profiling, a library for analyzing traces using SQL and a web-based UI to visualize and explore multi-GB traces.
See https://perfetto.dev/docs or the /docs/ directory for documentation.