config

package
Version: v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DebugConfiguration

type DebugConfiguration struct {

	// MutexProfileFraction is used to set the runtime.SetMutexProfileFraction to report mutex contention events.
	// See https://tip.golang.org/pkg/runtime/#SetMutexProfileFraction for more details about the value.
	MutexProfileFraction int `yaml:"mutexProfileFraction"`

	// BlockProfileRate is used to set the runtime.BlockProfileRate to report blocking events
	// See https://golang.org/pkg/runtime/#SetBlockProfileRate for more details about the value.
	BlockProfileRate int `yaml:"blockProfileRate"`
}

DebugConfiguration for the debug package.

func (DebugConfiguration) SetRuntimeValues

func (c DebugConfiguration) SetRuntimeValues(logger *zap.Logger)

SetRuntimeValues sets the configured pprof runtime values.

Source Files

Jump to

Keyboard shortcuts

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