Skip to content

Create unique IDs for jank and latency CUJs#5345

Merged
IQ01660 merged 1 commit intomainfrom
dev/gabiyev/dupe-cuj
Mar 30, 2026
Merged

Create unique IDs for jank and latency CUJs#5345
IQ01660 merged 1 commit intomainfrom
dev/gabiyev/dupe-cuj

Conversation

@IQ01660
Copy link
Copy Markdown
Contributor

@IQ01660 IQ01660 commented Mar 30, 2026

android_jank_latency_cujs table within sysui_cujs.sql
within Perfetto stdlib is a union of two tables:
android_sysui_jank_cujs and android_sysui_latency_cujs.
Each table has its own set of cuj_ids which are only unique within each table,
but not across all CUJs.

This creates a problem downstream, as we end up with multiple CUJs
with the same id but of different names.
So fix this by generating new unique ids across the union.

Bug: 496902302
Test: tools/diff_test_trace_processor.py
out/android/trace_processor_shell

android_jank_latency_cujs table within sysui_cujs.sql
within Perfetto stdlib is a union of two tables:
android_sysui_jank_cujs and android_sysui_latency_cujs.
Each table has its own set of cuj_ids which are only unique
within each table, but not across all CUJs.

This creates a problem downstream, as we end up with multiple
CUJs with the same id but of different names. So fix this
by generating new unique ids across the union.

Bug: 496902302
Test: tools/diff_test_trace_processor.py \
  out/android/trace_processor_shell
@IQ01660 IQ01660 requested a review from a team as a code owner March 30, 2026 14:56
@github-actions
Copy link
Copy Markdown

🎨 Perfetto UI Builds

@IQ01660 IQ01660 merged commit 9d82a1d into main Mar 30, 2026
23 checks passed
@IQ01660 IQ01660 deleted the dev/gabiyev/dupe-cuj branch March 30, 2026 15:51
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.

3 participants