Skip to content

Add web command for interactive analysis of stack usage#14

Merged
dylandreimerink merged 1 commit into
mainfrom
feature/web
Jul 16, 2026
Merged

Add web command for interactive analysis of stack usage#14
dylandreimerink merged 1 commit into
mainfrom
feature/web

Conversation

@dylandreimerink

@dylandreimerink dylandreimerink commented Jul 16, 2026

Copy link
Copy Markdown
Member

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.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 web subcommand that serves program summaries, per-program stack slot views, instruction listings, lifetime graphs, and a source viewer.
  • Factor stack analysis into internal/stackview and update list to 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.

Comment thread cmd/stackwhere/web.go Outdated
Comment thread cmd/stackwhere/web.go
Comment thread cmd/stackwhere/web.go Outdated
Comment thread internal/stackview/stackview.go
Comment thread internal/stackview/stackview.go
Comment thread cmd/stackwhere/list.go Outdated
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
dylandreimerink merged commit 1167d6d into main Jul 16, 2026
3 checks passed
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.

2 participants