rssmonitor

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultInterval is the RSS sample period.
	DefaultInterval = time.Second
	// DefaultDeltaThreshold logs when |delta_rss| exceeds this many bytes.
	DefaultDeltaThreshold = int64(1_000_000)
	// DefaultMinLogInterval is the minimum time between RSS debug logs.
	DefaultMinLogInterval = time.Minute
)

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, cfg Config)

Run starts the platform RSS monitor goroutine until ctx is cancelled. On non-Linux platforms this is a no-op.

Types

type Config

type Config struct {
	Interval         time.Duration
	DeltaThreshold   int64
	MinLogInterval   time.Duration
	NumRWConnections func() int64
	NumROConnections func() int64
}

Config controls the optional process RSS monitor.

Jump to

Keyboard shortcuts

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