commit | 900e4c469eedd3fc3733a9ab4c4f937b8ca17476 | [log] [tgz] |
---|---|---|
author | Samuel Wu <wusamuel@google.com> | Thu Aug 08 16:12:10 2024 -0700 |
committer | Samuel Wu <wusamuel@google.com> | Sun Aug 11 19:42:12 2024 -0700 |
tree | df20c1e644ed1ca47e8f386e845f1c266a430120 | |
parent | c22f496603b7161723f4a4779762a3a901808cfa [diff] |
metric: Add Wattson thread attribution for trace Add metric that attributes estimated power to individual threads for the duration of the entire trace. wattson_tasks_attribution.proto defines the output format for all power attribution to tasks. Possible tasks include threads (this patch), and potentially processes and packages in the future. The wattson_tasks_attribution.sql is a helper metric that can be re-used in the future for attributing power to other tasks. Test: tools/diff_test_trace_processor.py out/linux/trace_processor_shell --name-filter '.*wattson.*' Bug: 355070694 Change-Id: Ic323015c88d153e0cd0684b0b7cc37297ac50097 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.