Conversation
Add `pup profiling explore callgraph`, calling the new prof-gateway /api/unstable/profiling/pup/explore/callgraph endpoint (PROF-16038). - explore_callgraph in src/commands/profiling.rs, mirroring explore_flamegraph (query/trace/profile scoping, profile-id+event-id pairing validation) - ProfilingExploreActions::Callgraph clap variant and dispatch in src/main.rs - Tests for happy path, scoping/pairing validation, null optional fields, validation errors, and missing auth - Call graph examples in docs/EXAMPLES.md and command listing in docs/COMMANDS.md Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The backend's traceContext requires traceId, spanId and timeHint (epoch seconds) together and rejects requests with a null timeHint, so `--trace-id` scoping could never succeed. - Add a shared trace_context_json helper that validates the three flags together and converts --time-hint (any pup time format) to epoch seconds - Add --time-hint to `pup profiling explore callgraph` - Tests for the helper and for the callgraph traceContext request body Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
This was referenced Oct 1, 2026
This branch has not been deployed
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 added there, so the diff includes feat(profiling): add continuous profiler callgraph exploration #876's commits until it merges. Only the last commit (feat(profiling): add continuous profiler timeline exploration) is new here.continuous_profiler_readscope, so there are no new scopes or dependencies.Checklist
Related Issues
Follow-up to #819. Depends on #876.
Plan
Prompts
🤖 Generated with Claude Code