profileutil

package
v2.9.4 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Profileutil contains functionality to export performance information to external systems.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartCloudProfiler

func StartCloudProfiler(ctx context.Context, service string, config *pachconfig.Configuration)

StartCloudProfiler enables Google Cloud Profiler and begins exporting profiles, if GoogleCloudProfilerProject is set in the provided configuration. Configuration information is read from the instance's GCE metadata server, so this requires running on GCP. Docs: https://cloud.google.com/profiler/docs

Service is the name of this binary (pachd, worker, etc.).

If there is a problem starting the cloud profiler, it logs a message but we continue.

Types

This section is empty.

Jump to

Keyboard shortcuts

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