MCPcopy Index your code
hub / github.com/becheran/roumon

github.com/becheran/roumon @v1.2.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.2.0 ↗ · + Follow
32 symbols 92 edges 7 files 15 documented · 47% updated 20d agov1.2.0 · 2024-01-04★ 2361 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

roumon

Build Status Go Report Card PRs Welcome License Go Reference Coverage Status

A goroutine monitor to keep track of active routines from within your favorite shell.

screenshot

Features

  • Track live state of all active goroutines
  • Terminal user interface written with termui 🤓
  • Simple to integrate pprof server for live monitoring
  • Dynamic history of goroutine count
  • Full-text filtering
  • Overview of routine states

Installation

go install github.com/becheran/roumon@latest

Or download the pre-compiled binaries from the releases page.

Usage

Before starting roumon, the go app which shall be monitored needs to be prepared to export pprof infos via http.

pprof

The program which shall be monitored needs to run a pprof server.

Import pprof into you program:

import _ "net/http/pprof"

Run a webserver which will listen on a specific port:

go func() {
    log.Println(http.ListenAndServe("localhost:6060", nil))
}()

Start your program and check that the pprof site is available in you web-browser: http://localhost:6060/debug/pprof

roumon

Start roumon in from your command line interface. Use optional arguments if needed.

For example roumon -debug=logfile -host=192.168.10.1 -port=8081 will start the routine monitor for the pprof profiles exposed to 192.168.10.1:8081 and write a debug logfile to ./logfile.

Run roumon with -h or --help to see all commandline argument options:

Usage of roumon:
  -debug string
        Path to debug file 
  -host string
        The pprof server IP or hostname (default "localhost")
  -port int
        The pprof server port (default 6060)

From within the Terminal User Interface (TUI) hit F1 for help F10 or ctrl-c to stop the application.

Contributing

Pull requests and issues are welcome!

Core symbols most depended-on inside this repo

updateList
called by 10
internal/ui/ui.go
ParseHeader
called by 8
internal/model/model.go
ParseStackPos
called by 6
internal/model/model.go
StackContains
called by 5
internal/model/model.go
String
called by 4
internal/model/model.go
ParseStackFrame
called by 4
internal/model/model.go
NewClient
called by 2
internal/client/client.go
Run
called by 2
internal/client/client.go

Shape

Function 19
Method 9
Struct 4

Languages

Go100%

Modules by API surface

internal/model/model_test.go10 symbols
internal/ui/ui.go9 symbols
internal/model/model.go7 symbols
internal/client/client.go3 symbols
test/Server/test.go1 symbols
main.go1 symbols
internal/client/client_test.go1 symbols

For agents

$ claude mcp add roumon \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page