Skip to content

Add server-wide Perfetto export (all activity in time range)#239

Merged
azat merged 3 commits intomainfrom
perfetto-server
Mar 30, 2026
Merged

Add server-wide Perfetto export (all activity in time range)#239
azat merged 3 commits intomainfrom
perfetto-server

Conversation

@azat
Copy link
Copy Markdown
Owner

@azat azat commented Mar 30, 2026

Follows the same pattern as ServerFlameGraph: a global action accessible via Ctrl+P/F8 that exports all server activity within the configured time range without requiring query selection.

Fixes: #238

azat and others added 2 commits March 30, 2026 11:04
Follows the same pattern as ServerFlameGraph: a global action accessible
via Ctrl+P/F8 that exports all server activity within the configured
time range without requiring query selection. The _for_perfetto SQL
methods now accept optional query_id filtering (None = all queries).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add 10 new system table sources for server-wide Perfetto traces:
metric_log, asynchronous_metric_log, asynchronous_insert_log,
error_log, s3queue_log, azure_queue_log, blob_storage_log,
background_schedule_pool_log, session_log, aggregated_zookeeper_log.

Split the worker's perfetto helper into fetch_and_populate (query-scoped),
fetch_server_perfetto_sources (server-only), and serve_perfetto_trace.
Split settings UI into "Perfetto (query)" and "Perfetto (server)" groups.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@azat
Copy link
Copy Markdown
Owner Author

azat commented Mar 30, 2026

For ~2min it takes 1.5GiB, so pretty heavy, but you can disable few sources and it will be more lightweight

- Fix error_log query: use `error` (not `name`) and `event_time` DateTime
  (not `event_time_microseconds` DateTime64), matching actual table schema.
- Add a time range dialog when invoking Server Perfetto Export, pre-filled
  with current view start/end. Includes a warning that server-wide export
  is heavy (~1.5 GiB/server for 2 min of data) so users should reduce the
  time range accordingly.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@azat azat force-pushed the perfetto-server branch from f5166fe to 5ef9d6e Compare March 30, 2026 09:44
@azat azat merged commit 6925592 into main Mar 30, 2026
8 checks passed
@azat azat deleted the perfetto-server branch March 30, 2026 09:48
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.

Perfetto node/cluster scope mode

1 participant