gvisorgvisor.dev/gvisor/pkg/sentry/kernel/memevent Index | Files

package memevent

import "gvisor.dev/gvisor/pkg/sentry/kernel/memevent"

Package memevent implements the memory usage events controller, which periodically emits events via the eventchannel.

Index

Types

type MemoryEvents

type MemoryEvents struct {
	// contains filtered or unexported fields
}

MemoryEvents describes the configuration for the global memory event emitter.

func New

func New(k *kernel.Kernel, period time.Duration) *MemoryEvents

New creates a new MemoryEvents.

func (*MemoryEvents) Start

func (m *MemoryEvents) Start()

Start starts the memory usage events emitter goroutine. Start must not be called concurrently with Stop and may only be called once.

func (*MemoryEvents) Stop

func (m *MemoryEvents) Stop()

Stop stops the memory usage events emitter goroutine. Stop must not be called concurrently with Start and may only be called once.

Source Files

memory_events.go

Version
v0.0.0-20250605235530-a6711d1e1dc6 (latest)
Published
Jun 5, 2025
Platform
linux/amd64
Imports
8 packages
Last checked
4 hours ago

Tools for package owners.