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.
Click to show internal directories.
Click to hide internal directories.