trace

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tracer

type Tracer struct {
	// contains filtered or unexported fields
}

func New

func New(enabled bool) *Tracer

func (*Tracer) Step

func (t *Tracer) Step(label string, start time.Time)

Step records a completed step and prints its duration.

func (*Tracer) Total

func (t *Tracer) Total()

Total prints the total elapsed time since the tracer was created.

Jump to

Keyboard shortcuts

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