feat(profiling): add continuous profiler timeline exploration - #877
Merged
Merged
Conversation
This was referenced Oct 1, 2026
Add `pup profiling explore timeline`, calling the new prof-gateway /api/unstable/profiling/pup/explore/timeline endpoint (PROF-16039). - explore_timeline in src/commands/profiling.rs: scoped by exactly one of --runtime-id (with --query), --trace-id (with --span-id/--time-hint) or --profile-id (with --event-id); optional focus window, focus event type, focus lane group, lane limit and Go critical-path analysis - ProfilingExploreActions::Timeline clap variant and dispatch in src/main.rs - Tests for each scope, request body shape, validation rules, null optional response fields, 400 errors and missing auth - Timeline examples in docs/EXAMPLES.md and command listing in docs/COMMANDS.md Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
AlexJF
force-pushed
the
feat/timeline-exploration
branch
from
October 2, 2026 13:55
8f9ac32 to
75968ad
Compare
AlexJF
marked this pull request as ready for review
October 2, 2026 13:57
platinummonkey
approved these changes
Oct 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Adds
pup profiling explore timeline, which calls the Continuous Profiler timeline exploration endpoint (POST /api/unstable/profiling/pup/explore/timeline). It returns an AI-friendly summary of a profile timeline: top lane groups (threads, GC, etc.) with thread-state and event breakdowns, utilization and insights, and optionally the critical path of a span.src/commands/profiling.rs:explore_timeline, scoped by exactly one of:--profile-id+--event-id: a single profile--runtime-id+--query: recent profiles of one process--trace-id+--span-id+--time-hint: the profiles behind a spanOptional flags are
--limit-lanes,--focus-from/--focus-to,--focus-event-type,--focus-lane-groupand--critical-path(Go only, requires--trace-id). Unset fields are left out so server defaults apply.src/main.rs:ProfilingExploreActions::Timelineplus dispatch and doc-comment updates.Tests: each scope's request body, all validation rules, null optional response fields, a 400 error, and missing auth.
Docs: timeline examples in
docs/EXAMPLES.mdand the command listing indocs/COMMANDS.md.Motivation
Follow-up to #819 (
pup profilingoperations), alongside call graph exploration (#876). Timeline exploration was the remaining exploration view only exposed through the profiling MCP server.Additional Notes
trace_context_jsonhelper from feat(profiling): add continuous profiler callgraph exploration #876 (merged) for--trace-id/--span-id/--time-hintscoping.continuous_profiler_readscope, so there are no new scopes or dependencies.Checklist
Related Issues
Follow-up to #819 and #876.
Plan
Prompts
🤖 Generated with Claude Code