profile

package
v1.1.0-beta.0...-37a1f42 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: Apache-2.0 Imports: 15 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 (*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