Skip to main content

Module source

Module source 

Source
Expand description

Data sources: anything that can produce Snapshots.

Front-ends only talk to the DataSource trait. The local machine is one implementation (LocalSource); a remote host reached through ssh host rigtop --agent will be another, so remote monitoring needs no changes in the front-ends.

Structs§

LocalSource
Collects snapshots of the machine rigtop runs on.

Enums§

ProcessSignal
Signals a front-end can send to a process.
SourceError
Errors a data source can report.

Constants§

MIN_POLL_INTERVAL
Shortest sensible interval between two polls. CPU usage is computed from the difference between polls and is inaccurate below this.

Traits§

DataSource
A producer of snapshots, local or remote.