Add web command for interactive analysis of stack usage#14
Merged
Conversation
dylandreimerink
force-pushed
the
feature/web
branch
from
July 16, 2026 13:57
099078f to
3a4233e
Compare
There was a problem hiding this comment.
Pull request overview
This PR adds an interactive web UI (stackwhere web / stackwhere w) for exploring eBPF stack usage, reusing the existing analysis logic through a new internal stackview package and serving embedded UI assets and source previews.
Changes:
- Add
websubcommand that serves program summaries, per-program stack slot views, instruction listings, lifetime graphs, and a source viewer. - Factor stack analysis into
internal/stackviewand updatelistto use it. - Update lifetime graph SVG output to add clickable markers and add test coverage for the web handlers/assets.
Reviewed changes
Copilot reviewed 13 out of 13 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| README.md | Documents the new web command usage. |
| internal/stackview/stackview.go | Introduces a reusable analyzer for collection summaries and per-program slot details. |
| cmd/stackwhere/web.go | Implements the web command, handlers, source viewer, and embedded static serving. |
| cmd/stackwhere/web_test.go | Adds handler-level tests for landing/program/source/static endpoints. |
| cmd/stackwhere/main.go | Registers the new web command in the CLI. |
| cmd/stackwhere/list.go | Switches list logic to the new stackview analyzer and adds filtering. |
| cmd/stackwhere/list_test.go | Updates tests to exercise stackview instead of inlined list logic. |
| cmd/stackwhere/lifetimes.go | Refactors helpers and adds SVG marker metadata for interactivity. |
| cmd/stackwhere/webassets/* | Adds HTML/CSS/JS assets for the web UI. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This commit adds a new web command which launches a web server that allows you to interactively analyze stack usage of your BPF collections. It combines the existing CLI commands into a web interface, which is more user-friendly than the CLI commands. Signed-off-by: Dylan Reimerink <dylan.reimerink@isovalent.com>
dylandreimerink
force-pushed
the
feature/web
branch
from
July 16, 2026 14:20
3a4233e to
6dba99e
Compare
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.
This commit adds a new web command which launches a web server that allows you to interactively analyze stack usage of your BPF collections. It combines the existing CLI commands into a web interface, which is more user-friendly than the CLI commands.
AI disclosure: AIL 4. Human guidance, AI implementation.