version

package
v0.0.0-...-0c63fb0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteHeader

func WriteHeader(w io.Writer, v Version) (int, error)

WriteHeader writes a header for a trace version v to w.

Types

type Version

type Version uint32

Version represents the version of a trace file.

const (
	Go122   Version = 22
	Current         = Go122
)

func ReadHeader

func ReadHeader(r io.Reader) (Version, error)

ReadHeader reads the version of the trace out of the trace file's header, whose prefix must be present in v.

func (Version) Specs

func (v Version) Specs() []event.Spec

Specs returns the set of event.Specs for this version.

func (Version) Valid

func (v Version) Valid() bool

Jump to

Keyboard shortcuts

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