Skip to content

Perfetto polish#235

Merged
azat merged 6 commits intomainfrom
perfetto-polish
Mar 29, 2026
Merged

Perfetto polish#235
azat merged 6 commits intomainfrom
perfetto-polish

Conversation

@azat
Copy link
Copy Markdown
Owner

@azat azat commented Mar 29, 2026

No description provided.

azat and others added 6 commits March 29, 2026 09:41
Perfetto renders byte counters with human-readable units (e.g. "1.5 MB")
instead of raw numbers. Applies to both trace_log and query_metric_log
ProfileEvent counters, including per-server tracks.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Scale Microseconds (×1000), Milliseconds (×1000000), and Nanoseconds
(×1) to nanoseconds so Perfetto renders them as human-readable durations.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Use chars().take(80) instead of byte slice &message[..80] which panics
if byte 80 falls in the middle of a multi-byte character.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Remove truncation — use the complete message as the slice name.
The message was already duplicated in annotations, so drop that too.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
ORDER BY event_time_microseconds for chronological consistency with all
other Perfetto queries (was query_id, thread_id). Remove unused
thread_id from SELECT.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
All other Perfetto methods include query_id in annotations for
traceability; text_logs was the only one missing it.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@azat azat merged commit ff49226 into main Mar 29, 2026
8 checks passed
@azat azat deleted the perfetto-polish branch March 29, 2026 14:07
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