memplot

package
v0.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SavePlot

func SavePlot(p *plot.Plot, width, height vg.Length, filename string) error

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

type PlotOptions struct {
	PlotRss bool
	PlotVsz bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL