profile

package
v3.1.0-fork Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CPUProfileInterval = 30 * time.Second

CPUProfileInterval represents the duration of sampling CPU

Functions

This section is empty.

Types

type Collector

type Collector struct{}

Collector is used to collect the profile results

func (*Collector) ParseGoroutines

func (c *Collector) ParseGoroutines(reader io.Reader) ([][]types.Datum, error)

ParseGoroutines returns the groutine list for given string representation

func (*Collector) ProfileGraph

func (c *Collector) ProfileGraph(name string) ([][]types.Datum, error)

ProfileGraph returns the CPU/memory/mutex/allocs/block profile flamegraph which is organized by tree form

func (*Collector) ProfileReaderToDatums

func (c *Collector) ProfileReaderToDatums(f io.Reader) ([][]types.Datum, error)

ProfileReaderToDatums reads data from reader and returns the flamegraph which is organized by tree form.

Jump to

Keyboard shortcuts

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