core

package
v0.0.0-...-e20bd7d Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCollect

func NewCollect(intervalSec int, dir string) (*collect, error)

func Start

func Start(cfgs ...WithCfg) error

Types

type Cfg

type Cfg struct {
	Interval int
	Dir      string
}

type Msg

type Msg struct {
	Timestamp    int64  `json:"timestamp"`
	Sys          uint64 `json:"sys"`
	HeapSys      uint64 `json:"heapsys"`
	HeapAlloc    uint64 `json:"heapalloc"`
	HeapInuse    uint64 `json:"heapinuse"`
	HeapReleased uint64 `json:"heapreleased"`
	HeapIdle     uint64 `json:"heapidle"`

	VMS uint64 `json:"vms"`
	RSS uint64 `json:"rss"`
}

type WithCfg

type WithCfg func(cfg *Cfg)

Jump to

Keyboard shortcuts

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