writeprofile

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package writeprofile provides explicitly opted-in, local developer diagnostics. Stage names must be constants: payloads and identities never belong in profiles.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Region

func Region(name string) func()

Region measures a wall region, including waits. Nested/concurrent regions overlap and MUST NOT be added as if they partition process elapsed time.

func StartEnv

func StartEnv() error

StartEnv requires a new directory and an explicit mode. Normal invocations neither allocate artifacts nor enable runtime sampling. The harness supplies private destinations; this is not a security sandbox for untrusted commands.

func Stop

func Stop()

Stop is idempotent and must run before os.Exit as well as normal return.

func Timer

func Timer(name string) func()

Timer measures across goroutines without creating an invalid trace region.

Types

This section is empty.

Jump to

Keyboard shortcuts

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