stats

package
v0.1.1-beta.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SystemStats

func SystemStats() map[string]interface{}

SystemStats reads system info from /proc (Linux) or falls back to runtime info

Types

type ProcessEntry

type ProcessEntry struct {
	Name  string `json:"name"`
	Count int    `json:"count"`
}

ProcessEntry represents a process name and its count

func ProcessCountsFromSessions

func ProcessCountsFromSessions(sessions []*tmux.Session) []ProcessEntry

ProcessCountsFromSessions counts pane commands from session data, sorted by count descending

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL