runtime

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// BuildInfo is a globally accessible build information block from the Go compiler about
	// the build environment
	BuildInfo = BuildMetadata{}
)

Functions

func InitCPUProfiler

func InitCPUProfiler(ctx context.Context, outputFN string) (err kv.Error)

InitCPUProfiler is used to start a profiler for the CPU

Types

type BuildMetadata

type BuildMetadata struct {
	Revision      string // Full commit ID or tag for this build for this present module
	ShortRevision string // Abberviated commit ID with a plus character if the build had uncommitted files
	Time          string // The time of the build, typically expressed as UTC
	Dirty         string // Dirty build, uncommitted files, character.  Contains a plus character if build was dirty or empty string if not.

	Arch string // The hardware architecture for this binary
	OS   string // The targetted operating system

	GoVersion   string // The Go compiler version being used
	ProjectPath string // The path for the project
	ModulePath  string // The git location for the modules root
}

Jump to

Keyboard shortcuts

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