commit | 476e94441aeea618e6126166f7941cf940072d71 | [log] [tgz] |
---|---|---|
author | Luke Chang <lukechang@google.com> | Tue Nov 09 23:14:34 2021 +0800 |
committer | Luke Chang <lukechang@google.com> | Thu Nov 11 15:46:46 2021 +0800 |
tree | 22b8d2725b9ce920d7b525fc7fd1967fc32dbbce | |
parent | d55477b23954ec32d46ff4b4ab839b81e5ddba29 [diff] |
metrics: Add frequency residency metric Frequency Residency is a useful normalized metric to find the predominantly frequency and frequency distribution for devices with dynamic voltage and frequency scaling. This patch extracts metadata from the clock_set_rate ftrace events to generate frequency residency metrics. Bug: 205778323 Test: <trace_processor_shell> --run-metrics android_dvfs \ <perfetto_trace> Test: tools/diff_test_trace_processor.py <trace_processor_shell> \ --trace-filter='dvfs_metric' Change-Id: Icc6465e23b748b95f774068b9545339fdf2aab9f Signed-off-by: Luke Chang <lukechang@google.com>
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.