profiler

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 8 Imported by: 2

Documentation

Overview

Package profiler enables the Cloud Profiler for the application.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(opts ...option.ClientOption) func(context.Context) error

Run starts the Cloud Profiler with given options. It requires the following IAM roles:

  • roles/cloudprofiler.agent

func WithMutexProfiling

func WithMutexProfiling() option.ClientOption

WithMutexProfiling enables mutex profiling.

func WithProject

func WithProject(project string) option.ClientOption

WithProject provides the GCP project ID.

func WithService

func WithService(service string) option.ClientOption

WithService provides the GCP service name.

func WithVersion

func WithVersion(version string) option.ClientOption

WithVersion provides the GCP service version.

Types

type Option

type Option = option.ClientOption

Option configures the profiler client.

Jump to

Keyboard shortcuts

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