tracer

package
v0.4.103 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2023 License: ISC Imports: 3 Imported by: 0

Documentation

Overview

tracer has events by task then time rather than time or thread

Index

Constants

This section is empty.

Variables

View Source
var TracerFactory parl.TracerFactory = &tracerFactory{}

Functions

func NewTracer

func NewTracer() (tracer parl.Tracer)

func NewTracerNil

func NewTracerNil() (tracer parl.Tracer)

func NewTracerRecord added in v0.4.6

func NewTracerRecord(text string) (record parl.TracerRecord)

Types

type Tracer

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

func (*Tracer) AssignTaskToThread added in v0.4.6

func (tr *Tracer) AssignTaskToThread(threadID parl.ThreadID, task parl.TracerTaskID) (tr2 parl.Tracer)

func (*Tracer) RecordTaskEvent added in v0.4.6

func (tr *Tracer) RecordTaskEvent(threadID parl.ThreadID, text string) (tr2 parl.Tracer)

func (*Tracer) Records

func (tr *Tracer) Records(clear bool) (records map[parl.TracerTaskID][]parl.TracerRecord)

type TracerRecord added in v0.4.6

type TracerRecord struct {
	At   time.Time
	Text string
}

func (*TracerRecord) Values added in v0.4.6

func (rd *TracerRecord) Values() (at time.Time, text string)

Jump to

Keyboard shortcuts

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