Documentation ¶
Index ¶
- Constants
- Variables
- type Basic
- type Cgroup
- func (cgroup *Cgroup) Focus(delegate func(p tview.Primitive))
- func (cgroup *Cgroup) InputHandler() func(event *tcell.EventKey, setFocus func(p tview.Primitive))
- func (cgroup *Cgroup) SelectedCgroupPath() string
- func (cgroup *Cgroup) SetFilterRule(input string) error
- func (cgroup *Cgroup) SetSource(s *model.Model)
- type Header
- type Help
- type InputDialog
- type Process
- func (process *Process) Focus(delegate func(p tview.Primitive))
- func (process *Process) InputHandler() func(event *tcell.EventKey, setFocus func(p tview.Primitive))
- func (process *Process) SelectedCgroupName() string
- func (process *Process) SetFilterRule(input string) error
- func (process *Process) SetSource(s *model.Model)
- type System
- func (system *System) InputHandler() func(event *tcell.EventKey, setFocus func(p tview.Primitive))
- func (system *System) SetSource(source *model.Model)
- func (system *System) UpdateCPUInfo()
- func (system *System) UpdateDiskInfo()
- func (system *System) UpdateMEMInfo()
- func (system *System) UpdateNetInfo()
- func (system *System) UpdateVMInfo()
- type TUI
Constants ¶
View Source
const ( LIVE = iota REPORT )
Variables ¶
View Source
var ( CGROUPGENERALLAYOUT = []string{"Name", "UsagePercent", "MemoryCurrent", "RbytePerSec", "WbytePerSec", "NrDescendants", "NrDyingDescendants", "Controllers"} CGROUPGENERALDEFAULTORDER = "Name" CGROUPCPULAYOUT = []string{"Name", "UsagePercent", "UserPercent", "SystemPercent", "NrPeriodsPerSec", "NrThrottledPerSec", "ThrottledPercent", "NrBurstsPerSec", "BurstPercent"} CGROUPCPUDEFAULTORDER = "Name" CGROUPMEMLAYOUT = []string{"Name", "MemoryCurrent", "SwapCurrent", "Anon", "File", "KernelStack", "Slab", "Sock", "Shmem", "Zswap", "Zswapped", "FileMapped", "FileDirty", "FileWriteback", "AnonThp", "InactiveAnon", "ActiveAnon", "InactiveFile", "ActiveFile", "Unevictable", "SlabReclaimable", "SlabUnreclaimable", "PgfaultPerSec", "PgmajfaultPerSec", "WorkingsetRefaultPerSec", "WorkingsetActivatePerSec", "WorkingsetNodereclaimPerSec", "PgrefillPerSec", "PgscanPerSec", "PgstealPerSec", "PgactivatePerSec", "PgdeactivatePerSec", "PglazyfreePerSec", "PglazyfreedPerSec", "ZswpInPerSec", "ZswpOutPerSec", "ThpFaultAllocPerSec", "ThpCollapseAllocPerSec", "EventLow", "EventHigh", "EventMax", "EventOom", "EventOomKill"} CGROUPMEMDEFAULTORDER = "Name" CGROUPIOLAYOUT = []string{"Name", "RbytePerSec", "WbytePerSec", "RioPerSec", "WioPerSec", "DbytePerSec", "DioPerSec"} CGROUPIODEFAULTORDER = "Name" CGROUPPRESSURELAYOUT = []string{"Name", "CPUSomePressure", "CPUFullPressure", "MemorySomePressure", "MemoryFullPressure", "IOSomePressure", "IOFullPressure"} CGROUPPRESSUREDEFAULTORDER = "Name" )
View Source
var ( GENERALLAYOUT = []string{"Pid", "Comm", "State", "CPU", "Mem", "ReadBytePerSec", "WriteBytePerSec"} GENERALDEFAULTORDER = "CPU" CPULAYOUT = []string{"Pid", "Comm", "CPU", "User", "System", "RunDelay", "BlkDelay", "Ppid", "NumThreads", "OnCPU", "Policy", "StartTime"} CPUDEFAULTORDER = "CPU" MEMLAYOUT = []string{"Pid", "Comm", "Mem", "MajFlt", "MinFlt", "VSize", "RSS"} MEMDEFAULTORDER = "Mem" IOLAYOUT = []string{"Pid", "Comm", "Disk", "ReadBytePerSec", "WriteBytePerSec", "CancelledWriteBytePerSec", "ReadCharPerSec", "WriteCharPerSec", "SyscRPerSec", "SyscWPerSec"} IODEFAULTORDER = "Disk" )
View Source
var ( CPUBusy float64 = 90 MemBusy float64 = 90 DiskBusy float64 = 90 )
Functions ¶
This section is empty.
Types ¶
type Cgroup ¶ added in v0.1.5
func (*Cgroup) InputHandler ¶ added in v0.1.5
func (*Cgroup) SelectedCgroupPath ¶ added in v0.1.5
func (*Cgroup) SetFilterRule ¶ added in v0.1.8
type InputDialog ¶
func NewInputDialog ¶
func NewInputDialog() *InputDialog
type Process ¶ added in v0.0.2
func NewProcess ¶ added in v0.0.2
func (*Process) InputHandler ¶ added in v0.0.2
func (*Process) SelectedCgroupName ¶ added in v0.1.8
func (*Process) SetFilterRule ¶ added in v0.1.3
type System ¶ added in v0.0.2
func (*System) InputHandler ¶ added in v0.0.2
func (*System) UpdateCPUInfo ¶ added in v0.1.1
func (system *System) UpdateCPUInfo()
func (*System) UpdateDiskInfo ¶ added in v0.1.1
func (system *System) UpdateDiskInfo()
func (*System) UpdateMEMInfo ¶ added in v0.1.1
func (system *System) UpdateMEMInfo()
func (*System) UpdateNetInfo ¶ added in v0.1.1
func (system *System) UpdateNetInfo()
func (*System) UpdateVMInfo ¶ added in v0.1.1
func (system *System) UpdateVMInfo()
type TUI ¶
type TUI struct { *tview.Application // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.