Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatBytes ¶
Types ¶
type ConfigInterface ¶
type Monitor ¶
type Monitor struct {
// contains filtered or unexported fields
}
func New ¶
func New(config ConfigInterface) *Monitor
func (*Monitor) GetFilteredProcesses ¶
func (m *Monitor) GetFilteredProcesses() ([]*ProcessInfo, error)
func (*Monitor) GetResourceLevel ¶
func (m *Monitor) GetResourceLevel(cpuPercent float64, memoryMB float64) ResourceLevel
func (*Monitor) GetSystemMetrics ¶
func (m *Monitor) GetSystemMetrics() (*SystemMetrics, error)
func (*Monitor) ToggleExpanded ¶
type ProcessInfo ¶
type ResourceLevel ¶
type ResourceLevel int
const ( Low ResourceLevel = iota Medium High )
func (ResourceLevel) String ¶
func (rl ResourceLevel) String() string
Click to show internal directories.
Click to hide internal directories.