profiling

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Meta

type Meta struct {
	Type model.ProfileType `json:"type"`
	Name string            `json:"name"`
}

type Profile

type Profile struct {
	Type       model.ProfileType     `json:"type"`
	FlameGraph *model.FlameGraphNode `json:"flamegraph"`
	Diff       bool                  `json:"diff"`
}

type Query

type Query struct {
	Type model.ProfileType `json:"type"`
	From timeseries.Time   `json:"from"`
	To   timeseries.Time   `json:"to"`
	Mode string            `json:"mode"`
}

type Service

type Service struct {
	Name   string `json:"name"`
	Linked bool   `json:"linked"`
}

type View

type View struct {
	Status   model.Status `json:"status"`
	Message  string       `json:"message"`
	Services []Service    `json:"services"`
	Profiles []Meta       `json:"profiles"`
	Profile  Profile      `json:"profile"`
	Chart    *model.Chart `json:"chart"`
}

func Render

func Render(ctx context.Context, ch *clickhouse.Client, app *model.Application, appSettings *db.ApplicationSettings, query url.Values, wCtx timeseries.Context) *View

Jump to

Keyboard shortcuts

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