hrlogreader

package
v0.0.0-...-6c4fd92 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: NIST-PD-fallback Imports: 5 Imported by: 0

Documentation

Overview

Package hrlogreader reads high resolution tracing logs.

Index

Constants

View Source
const (
	Magic   = 0x35F0498A
	Version = 2
)

Header constants.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

type Reader struct {
	TscHz uint64 // TSC timer frequency
	// contains filtered or unexported fields
}

Reader represents a reader for high resolution logs.

func Open

func Open(filename string) (r *Reader, e error)

Open opens a hrlog file.

func (*Reader) Read

func (r *Reader) Read() <-chan uint64

Read reads all entries then closes the file.

Jump to

Keyboard shortcuts

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