profile

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package profile provides a simple way to gather timing statistics.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(ctx context.Context, name string)

Add adds event and event with the given name to the profile attached to the context.

func Dump

func Dump(ctx context.Context) string

Dump prints the profile attached to the context as string.

func NewContext

func NewContext(parent context.Context) context.Context

NewContext returns a new context that has profiling information attached.

Types

This section is empty.

Jump to

Keyboard shortcuts

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