performance

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package performance implements the Performance domain.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(conn *rpcc.Conn) *domainClient

NewClient returns a client for the Performance domain with the connection set to conn.

Types

type GetMetricsReply

type GetMetricsReply struct {
	Metrics []Metric `json:"metrics"` // Current values for run-time metrics.
}

GetMetricsReply represents the return values for GetMetrics in the Performance domain.

type Metric

type Metric struct {
	Name  string  `json:"name"`  // Metric name.
	Value float64 `json:"value"` // Metric value.
}

Metric Run-time execution metric.

type MetricsClient

type MetricsClient interface {
	// Recv calls RecvMsg on rpcc.Stream, blocks until the event is
	// triggered, context canceled or connection closed.
	Recv() (*MetricsReply, error)
	rpcc.Stream
}

MetricsClient is a client for Metrics events. Current values of the metrics.

type MetricsReply

type MetricsReply struct {
	Metrics []Metric `json:"metrics"` // Current values of the metrics.
	Title   string   `json:"title"`   // Timestamp title.
}

MetricsReply is the reply for Metrics events.

type SetTimeDomainArgs added in v0.19.2

type SetTimeDomainArgs struct {
	// TimeDomain Time domain
	//
	// Values: "timeTicks", "threadTicks".
	TimeDomain string `json:"timeDomain"`
}

SetTimeDomainArgs represents the arguments for SetTimeDomain in the Performance domain.

func NewSetTimeDomainArgs added in v0.19.2

func NewSetTimeDomainArgs(timeDomain string) *SetTimeDomainArgs

NewSetTimeDomainArgs initializes SetTimeDomainArgs with the required arguments.

Jump to

Keyboard shortcuts

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