commit | 83b652224348db9e651a78c3fe4212bb3a6d78a7 | [log] [tgz] |
---|---|---|
author | Samuel Wu <wusamuel@google.com> | Thu Oct 03 10:42:18 2024 -0700 |
committer | Samuel Wu <wusamuel@google.com> | Wed Oct 16 16:05:27 2024 +0000 |
tree | e48e5cf42084e63073b58938797207e82e77344f | |
parent | d31780ef41b7ccbc568ead998587edadcb226063 [diff] |
stdlib: Add support for DSU dependent devices Add support for devices that depend on DSU for power estimates. The callflow will short circuit device-specific tables that are unnecessary for that device's calculation. For example, a device that depends on DSU calculations will short circuit tables that use CPU dependent calculations. Runtime of existing Wattson test cases remain the same before and after this patch (~4300ms). SQL modules callflow: ┌────────┐ ┌────────┐ │cpu_idle│ │cpu_freq│ └┬───────┘ └───────┬┘ │ │ │ ┌─────────────┐ │ ┌───────┐ └─►│cpu_freq_idle│◄─┘ │devfreq│ └──────┬──────┘ └───┬───┘ │ │ ┌────▼────┐ │ ┌──┤cpu_split├──────────┐ │ │ └─────────┘ │ │ │ │ │ ┌───▼────────────┐ ┌────────▼───▼───┐ │w_cpu_dependence│ │w_dsu_dependence│ └───┬────────────┘ └────────┬───────┘ │ │ │ ┌─────────┐ │ └─────►│estimates│◄─────┘ └─────────┘ Bug: 370829192 Test: tools/diff_test_trace_processor.py out/linux/trace_processor_shell --name-filter '.*wattson.*' Change-Id: I8eb611450605837ed88aea5f5d2934c572e11730 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.