event

package
v0.0.0-...-7c6133f Latest Latest
Warning

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

Go to latest
Published: May 30, 2016 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DumpAsTextFile

func DumpAsTextFile(filename string, events []Event) (err error)

Types

type Event

type Event struct {
	Type    Type
	Time    time.Time
	EndTime time.Time
	Value   uint64
}

func ExtractThroughput

func ExtractThroughput(events []Event) (regular, throughput []Event)

func NewEvent

func NewEvent(t Type) Event

func NewEventWithMetric

func NewEventWithMetric(t Type, v uint64) Event

func NewTimedEvent

func NewTimedEvent(t Type, start time.Time) Event

func Parse

func Parse(filename string) ([]Event, error)

func (Event) String

func (e Event) String() string

type Type

type Type uint8
const (
	// General: 0-15
	Unknown       Type = 0
	Start         Type = 1
	Running       Type = 2
	Processing    Type = 3
	ShutdownStart Type = 4
	Exit          Type = 5

	// Throughput: 16-23
	ThroughputSample Type = 16

	// Common-Standby: 24-31
	InitListening     Type = 24
	InitTransferStart Type = 25
	InitTransferDone  Type = 26
	InitInitialized   Type = 27

	// LR-Standby: 32-39
	LRWaitForActivation Type = 32
	LRActivated         Type = 33

	// Reconfig-Standby: 40-47
	ReconfigFirstSlotReceived Type = 40
	ReconfigJoined            Type = 41

	// Failure Handling Common: 48-55
	FailureHandlingSuspect   Type = 48
	FailureHandlingInitStart Type = 49
	FailureHandlingInitDone  Type = 50

	// Catch-up: 56-63
	CatchUpMakeReq          Type = 56
	CatchUpSentReq          Type = 57
	CatchUpRecvReq          Type = 58
	CatchUpSentResp         Type = 59
	CatchUpRecvResp         Type = 60
	CatchUpDoneHandlingResp Type = 61

	// Live Replacement: 64-71
	LRStart            Type = 64
	LRPrepareEpochSent Type = 65
	LRPrepareEpochRecv Type = 66
	LRActivatedFromPE  Type = 67
	LRPreConnectSleep  Type = 68

	// Reconfiguration: 72-79
	ReconfigStart         Type = 72
	ReconfigPropose       Type = 73
	ReconfigExecReconfCmd Type = 74
	ReconfigDone          Type = 75

	// ARec: 80-87
	ARecStart            Type = 80
	ARecRMSent           Type = 81
	ARecStopPaxos        Type = 82
	ARecActivatedFromCPs Type = 83
	ARecRestart          Type = 84

	// Client Request Latency: 88-95
	ClientRequestLatency Type = 88
)

func (Type) String

func (i Type) String() string

Jump to

Keyboard shortcuts

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