service

package
v1.6.65 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InstanceProfileEventType = []string{"inuse_objects", "inuse_space", "goroutines", "mem-inuse"}

Functions

func CutKernelFunction

func CutKernelFunction(profileLocationByteSlice []byte, maxKernelStackDepth int, sep string) ([]byte, bool)

func GenerateProfile

func GenerateProfile(args model.Profile, cfg *config.QuerierConfig, where string) (result model.ProfileTree, debug interface{}, err error)

func GetLocationType

func GetLocationType(locations []string, locationValues [][]int, profileEventType string) []string

func GrafanaProfile

func GrafanaProfile(args model.Profile, cfg *config.QuerierConfig, where string) (result *model.GrafanaProfileValue, debug interface{}, err error)

func NewError

func NewError(status string, message string) error

func NewProfileDebug

func NewProfileDebug(sql string, querierDebug map[string]interface{}) (profileDebug model.Debug)

func Profile

func Profile(args model.Profile, cfg *config.QuerierConfig) (result model.ProfileTree, debug interface{}, err error)

Types

type ServiceError

type ServiceError struct {
	Status  string
	Message string
}

func (*ServiceError) Error

func (e *ServiceError) Error() string

Jump to

Keyboard shortcuts

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