Skip to content

tp: Support interned job names in Android track events#5072

Open
sanath099 wants to merge 2 commits intomainfrom
dev/sanath099/pr/sync-aosp-job-scheduler
Open

tp: Support interned job names in Android track events#5072
sanath099 wants to merge 2 commits intomainfrom
dev/sanath099/pr/sync-aosp-job-scheduler

Conversation

@sanath099
Copy link
Contributor

This change adds support for interning job names in JobScheduler track events. This ensures job names are interned in a buffer that is friendly for PII filtering at the perfetto side.

Specifically, this adds the 'job_name_iid' field to the AndroidJobSchedulerJob proto and updates the generated C headers.

Welcome to Perfetto!
Make sure your PR has a bug/issue attached or has at least
a clear description of the problem you are trying to fix.

For more details please see
https://perfetto.dev/docs/contributing/getting-started

@sanath099 sanath099 requested a review from a team as a code owner March 11, 2026 04:03
@github-actions
Copy link

github-actions bot commented Mar 11, 2026

This change adds support for resolving interned JobScheduler job names
in the Trace Processor. While job names are conceptually strings, they
are emitted as interned IDs to optimize trace size and support PII
filtering.

Specifically:
- Updated android_track_event.proto to include 'job_name_iid' (field 21).
- Implemented a specialized parsing override in TrackEventParser to
  resolve these IIDs using the InternedData.android_job_name table.
- Updated generated C headers for the new field.

This ensures that JobScheduler traces correctly display the full job
name instead of a raw integer ID.
@sanath099 sanath099 force-pushed the dev/sanath099/pr/sync-aosp-job-scheduler branch from 20aebb4 to 255fded Compare March 13, 2026 16:17
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.

2 participants