cloudprofiler

package
v0.61.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package cloudprofiler provides primitives for Cloud Profiler integration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(config Config) error

Start the profiler according to the provided Config.

Types

type Config

type Config struct {
	// Enabled indicates if the profiler should be enabled.
	Enabled bool `onGCE:"true"`
	// MutexProfiling indicates if mutex profiling should be enabled.
	MutexProfiling bool
	// AllocForceGC indicates if GC should be forced before allocation profiling snapshots are taken.
	AllocForceGC bool `default:"true"`
}

Config configures the use of Google Cloud Profiler.

Jump to

Keyboard shortcuts

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