traceutil

package
v0.53.1 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 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.

Jump to

Keyboard shortcuts

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