pprofplus

package
v0.0.0-...-c2a72ed Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCapture

func NewCapture(captureIntervalSec int) *capture

func NewDump

func NewDump(dir string, serviceName string) (*dump, error)

func Start

func Start(modOptions ...ModOption) error

Types

type Info

type Info struct {
	Timestamp int64

	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 ModOption

type ModOption func(option *Option)

type Option

type Option struct {
	CaptureIntervalSec int    // 采集间隔,单位秒
	DumpDir            string // 采集数据存放的目录
	ServiceName        string // 采集服务名,展示数据时可根据这个字段,展示相应服务的信息
}

Jump to

Keyboard shortcuts

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