Documentation
¶
Overview ¶
Package memoryusage holds the routines which manage the file_summary_by_instance table.
Index ¶
- type Wrapper
- func (muw *Wrapper) Collect()
- func (muw Wrapper) Description() string
- func (muw Wrapper) EmptyRowContent() string
- func (muw Wrapper) FirstCollectTime() time.Time
- func (muw Wrapper) HaveRelativeStats() bool
- func (muw Wrapper) Headings() string
- func (muw Wrapper) LastCollectTime() time.Time
- func (muw *Wrapper) ResetStatistics()
- func (muw Wrapper) RowContent() []string
- func (muw Wrapper) TotalRowContent() string
- func (muw Wrapper) WantRelativeStats() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Wrapper ¶
type Wrapper struct {
// contains filtered or unexported fields
}
Wrapper wraps a FileIoLatency struct representing the contents of the data collected from file_summary_by_instance, but adding formatting for presentation in the terminal
func NewMemoryUsage ¶
NewMemoryUsage creates a wrapper around MemoryUsage
func (Wrapper) Description ¶
Description returns a description of the table
func (Wrapper) EmptyRowContent ¶
EmptyRowContent returns an empty string of data (for filling in)
func (Wrapper) FirstCollectTime ¶
FirstCollectTime returns the time the first value was collected
func (Wrapper) HaveRelativeStats ¶
HaveRelativeStats is true for this object
func (Wrapper) LastCollectTime ¶
LastCollectTime returns the time the last value was collected
func (*Wrapper) ResetStatistics ¶ added in v1.1.0
func (muw *Wrapper) ResetStatistics()
ResetStatistics resets the statistics to last values
func (Wrapper) RowContent ¶
RowContent returns the rows we need for displaying
func (Wrapper) TotalRowContent ¶
TotalRowContent returns all the totals
func (Wrapper) WantRelativeStats ¶
WantRelativeStats indiates if we want relative statistics