trace

package
v0.36.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2025 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Stubs for the runtime/trace package

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsEnabled added in v0.35.0

func IsEnabled() bool

func Log added in v0.35.0

func Log(ctx context.Context, category, message string)

func Logf added in v0.35.0

func Logf(ctx context.Context, category, format string, args ...any)

func Start

func Start(w io.Writer) error

func Stop

func Stop()

func WithRegion added in v0.35.0

func WithRegion(ctx context.Context, regionType string, fn func())

Types

type Region added in v0.35.0

type Region struct{}

func StartRegion added in v0.35.0

func StartRegion(ctx context.Context, regionType string) *Region

func (*Region) End added in v0.35.0

func (r *Region) End()

type Task added in v0.35.0

type Task struct{}

func NewTask added in v0.35.0

func NewTask(pctx context.Context, taskType string) (ctx context.Context, task *Task)

func (*Task) End added in v0.35.0

func (t *Task) End()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳