Help us shape the future of Go! Take the 2026 Go Developer Survey

traceutil

package
v0.57.10 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package traceutil wraps runtime/trace so callers compile under TinyGo, which lacks the runtime/trace package; the TinyGo build provides no-op equivalents.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Log

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

Log emits a single trace log message in the given category.

func Logf

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

Logf emits a formatted trace log message in the given category.

Types

type Task

type Task = trace.Task

Task is a runtime/trace task.

func NewTask

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

NewTask creates a trace task of the given type rooted at ctx.

Directories

Path Synopsis
Package startuptrace provides compile-time gated startup attribution tracing.
Package startuptrace provides compile-time gated startup attribution tracing.

Jump to

Keyboard shortcuts

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