profile

package
v2.55.2 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package profile provides unified profiling functionality for aqua CLI operations. It combines CPU profiling and execution tracing capabilities to enable comprehensive performance analysis of aqua commands.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Profiler

type Profiler struct {
	// contains filtered or unexported fields
}

Profiler manages both CPU profiling and execution tracing for aqua operations. It coordinates multiple profiling mechanisms to provide comprehensive performance analysis capabilities.

func Start

func Start(cmd *cli.Command) (*Profiler, error)

Start initializes profiling based on CLI command flags and returns a Profiler instance. It starts both execution tracing and CPU profiling if the respective flags are provided. If any profiling mechanism fails to start, it cleans up already started profilers.

func (*Profiler) Stop

func (p *Profiler) Stop()

Stop terminates all active profiling sessions and cleans up resources. It safely stops both CPU profiling and execution tracing, ensuring proper cleanup even if components are nil.

Jump to

Keyboard shortcuts

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