Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MemoryCollection ¶
type MemoryCollection struct { Pid int32 StartTime time.Time SampleDuration time.Duration // Time between samples Samples []MemoryInstant }
func NewMemoryCollection ¶
func NewMemoryCollection(pid int32, sd, duration time.Duration) (*MemoryCollection, error)
Gather a process resident size in memory in batch
func (*MemoryCollection) GatherRSSXYs ¶
func (m *MemoryCollection) GatherRSSXYs() plotter.XYs
Gather RSS points from a memory collection
func (*MemoryCollection) GatherVSZXYs ¶
func (m *MemoryCollection) GatherVSZXYs() plotter.XYs
Gather VSZ points from a memory collection
func (*MemoryCollection) Plot ¶
func (m *MemoryCollection) Plot(opt PlotOptions) (*plot.Plot, error)
Plot a memory collection
type MemoryInstant ¶
type MemoryInstant struct { MemoryInfo *process.MemoryInfoStat Instant time.Duration }
Memory data for a given instant
type PlotOptions ¶
Click to show internal directories.
Click to hide internal directories.