Skip to content

stdlib: Wattson: optimize cpuidle intervals with counter_leading_intervals - #7620

Draft
wusamuel6 wants to merge 2 commits into
mainfrom
dev/wusamuel/wattson_cleanup
Draft

wusamuel6 wants to merge 2 commits into
mainfrom
dev/wusamuel/wattson_cleanup

Conversation

@wusamuel6

Copy link
Copy Markdown
Contributor

Use counter_leading_intervals() to generate cpuidle slices in C++ and
compute boundaries directly, eliminating expensive window functions
over raw counters. Pre-map track offsets and resolve deep-idle exit timestamps
via a sparse _deeo_idle_before_exit index lookup.

wattson_dsu_devfreq_system_state improves from ~3700ms --> ~2800ms

Test: tools/diff_test_trace_processor.py out/linux_clang_release/trace_processor_shell --name-filter '.wattson_' --print-slowest-tests
Bug: 454944449

Prevent COALESCE(dur, 0) and leading zero-duration rows in _arm_l3_miss_rate and
_arm_l3_hit_rate so that there aren't any "instant" slices.

Bug: 454944449
…rvals

Use counter_leading_intervals() to generate cpuidle slices in C++ and
compute boundaries directly, eliminating expensive  window functions
over raw counters. Pre-map track offsets and resolve deep-idle exit timestamps
via a sparse `_deeo_idle_before_exit` index lookup.

wattson_dsu_devfreq_system_state improves from ~3700ms --> ~2800ms

Bug: 454944449
@github-actions

Copy link
Copy Markdown

🎨 Perfetto UI Builds & Tests

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant