Skip to content

Collapse isolated UIDs into one CPU per UID track#6644

Open
rzuklie wants to merge 3 commits into
mainfrom
dev/rzuklie/cpu_per_uid_isolated_uid
Open

Collapse isolated UIDs into one CPU per UID track#6644
rzuklie wants to merge 3 commits into
mainfrom
dev/rzuklie/cpu_per_uid_isolated_uid

Conversation

@rzuklie

@rzuklie rzuklie commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

There can be many thousand isolated UIDs in a trace which is not particularly helpful to a user and is expensive for queries. This change treats isolated UIDs and shared UIDs similar to the totals tracks, where the delta is accumulated and written at the end of packet handling.

One subtle point: the last_value_ and delta_ms calculation is moved out of ComputeTotals, since we're now passing the canonicalized UID in which would break the delta calculation. This also puts the incremental and global last_value calculation in one function and tries to explain why they both exist.

rzuklie added 2 commits July 9, 2026 16:28
There can be many thousand isolated UIDs in a trace which is not
particularly helpful to a user and is expensive for queries. This change
treats isolated UIDs and shared UIDs similar to the totals tracks, where
the delta is accumulated and written at the end of packet handling.

One subtle point: the last_value_ and delta_ms calculation is moved out
of ComputeTotals, since we're now passing the canonicalized UID in which
would break the delta calculation. I also decided to consolidate the
interned and local last_value calculation in one function for clarity.
@rzuklie rzuklie requested a review from a team as a code owner July 9, 2026 16:42
@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown

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