trace_capture

package
v0.51.7 Latest Latest
Warning

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

Go to latest
Published: May 30, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CaptureCPUProfile

func CaptureCPUProfile(
	ctx context.Context,
	traceClient s4wave_trace.SRPCTraceServiceClient,
	out io.Writer,
	args CPUProfileArgs,
) (int64, error)

CaptureCPUProfile captures a CPU profile from a TraceService client.

func CaptureMemoryProfile

func CaptureMemoryProfile(
	ctx context.Context,
	traceClient s4wave_trace.SRPCTraceServiceClient,
	out io.Writer,
	args MemoryProfileArgs,
) (int64, error)

CaptureMemoryProfile captures a memory profile from a TraceService client.

func CaptureRuntimeTrace

func CaptureRuntimeTrace(
	ctx context.Context,
	traceClient s4wave_trace.SRPCTraceServiceClient,
	out io.Writer,
	args RuntimeTraceArgs,
) (int64, error)

CaptureRuntimeTrace captures a runtime trace from a TraceService client.

func StopRuntimeTrace

func StopRuntimeTrace(ctx context.Context, traceClient s4wave_trace.SRPCTraceServiceClient, out io.Writer) (int64, error)

StopRuntimeTrace stops a runtime trace and writes the streamed bytes.

Types

type CPUProfileArgs

type CPUProfileArgs struct {
	Duration time.Duration
	Label    string
}

CPUProfileArgs configures a CPU profile capture.

type MemoryProfileArgs

type MemoryProfileArgs struct {
	Profile string
	GC      bool
	Debug   int32
}

MemoryProfileArgs configures a memory profile capture.

type RuntimeTraceArgs

type RuntimeTraceArgs struct {
	Duration    time.Duration
	Label       string
	StopTimeout time.Duration
}

RuntimeTraceArgs configures a runtime trace capture.

Jump to

Keyboard shortcuts

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