commit | 50d5c555ec41cfdf53f69776a87fc86d4e6d518e | [log] [tgz] |
---|---|---|
author | Samuel Wu <wusamuel@google.com> | Thu Jul 11 17:27:39 2024 -0700 |
committer | Samuel Wu <wusamuel@google.com> | Wed Jul 24 16:22:26 2024 -0700 |
tree | 25199c4ffde0b429e87bad2abfe6e1033764deff | |
parent | 2961ee996e95d62f7af72ab17a62e52c75cf1419 [diff] |
metrics: Move Wattson metric to stdlib for reusability Move Wattson power estimate metric to Perfetto stdlib so that the code can be re-used. There are many use-cases for getting estimates from a trace, and the only difference is the particular time window of interest. Leave the time window calculation to be metric SQL file specific, but move the generic estimation and hierarchy breakdown to stdlib. Test: tools/diff_test_trace_processor.py out/linux/trace_processor_shell --name-filter '.*wattson.*' Bug: 352627297 Change-Id: I2d974faa4b65d5b3c28fc6706805a3019ec76ff0 Signed-off-by: Samuel Wu <wusamuel@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.