profiler

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Profiler

type Profiler struct {
	MetricsReportURL string
	// contains filtered or unexported fields
}

Profiler is the profiler data structure.

func GetProfiler

func GetProfiler() *Profiler

GetProfiler returns a pointer of Profiler. TODO: This should be a New method.

func (*Profiler) Config

func (profiler *Profiler) Config(shardID uint32, metricsReportURL string)

Config configurates Profiler.

func (*Profiler) LogCPU

func (profiler *Profiler) LogCPU()

LogCPU logs CPU metrics.

func (*Profiler) LogMemory

func (profiler *Profiler) LogMemory()

LogMemory logs memory.

func (*Profiler) LogMetrics

func (profiler *Profiler) LogMetrics(metrics map[string]interface{})

LogMetrics logs metrics.

func (*Profiler) Start

func (profiler *Profiler) Start()

Start starts profiling.

Jump to

Keyboard shortcuts

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