tracer

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2022 License: Unlicense Imports: 3 Imported by: 3

README

tracer

Trace wrapper package - wraps the boilerplace code for runtime/trace.

Documentation

Overview

Package tracer is simple convenience wrapper around writing trace to a file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	Filename string
	// contains filtered or unexported fields
}

func New

func New(tracefile string) *Info

New creates a new tracer instance. Tracer should be started with Start.

func (*Info) Close

func (t *Info) Close() error

Close ends the trace session (it's a wrapper around End).

func (*Info) End

func (t *Info) End() error

End ends the trace session.

func (*Info) Start

func (t *Info) Start() error

Start starts the tracing

Jump to

Keyboard shortcuts

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