stats

package
v0.0.0-...-79c606f Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package stats collects statistics about running Sif pipelines

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RunStatistics

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

RunStatistics contains statistics about a running Sif pipeline

func (*RunStatistics) EndPartition

func (rs *RunStatistics) EndPartition(sidx int, numRows int)

EndPartition tracks the end of the processing of a partition

func (*RunStatistics) EndShuffle

func (rs *RunStatistics) EndShuffle(sidx int)

EndShuffle tracks the end of the shuffle portion of a Stage

func (*RunStatistics) EndStage

func (rs *RunStatistics) EndStage(sidx int)

EndStage tracks the end of a Stage

func (*RunStatistics) EndTransform

func (rs *RunStatistics) EndTransform(sidx int)

EndTransform tracks the end of the transformation portion of a Stage

func (*RunStatistics) Finish

func (rs *RunStatistics) Finish()

Finish completes statistics tracking

func (*RunStatistics) GetCurrentPartitionProcessingTime

func (rs *RunStatistics) GetCurrentPartitionProcessingTime() int64

GetCurrentPartitionProcessingTime returns a rolling average of partition processing time

func (*RunStatistics) GetNumPartitionsProcessed

func (rs *RunStatistics) GetNumPartitionsProcessed() []int64

GetNumPartitionsProcessed returns the number of Partitions which have been processed so far, counted by stage

func (*RunStatistics) GetNumRowsProcessed

func (rs *RunStatistics) GetNumRowsProcessed() []int64

GetNumRowsProcessed returns the number of Rows which have been processed so far, counted by stage

func (*RunStatistics) GetRuntime

func (rs *RunStatistics) GetRuntime() int64

GetRuntime returns the running time of the Sif pipeline

func (*RunStatistics) GetStageRuntimes

func (rs *RunStatistics) GetStageRuntimes() []int64

GetStageRuntimes returns all recorded stage runtimes, from the most recent run of each Stage

func (*RunStatistics) GetStageShuffleRuntimes

func (rs *RunStatistics) GetStageShuffleRuntimes() []int64

GetStageShuffleRuntimes returns all recorded stage shuffle-phase runtimes, from the most recent run of each Stage

func (*RunStatistics) GetStageTransformRuntimes

func (rs *RunStatistics) GetStageTransformRuntimes() []int64

GetStageTransformRuntimes returns all recorded stage transform-phase runtimes, from the most recent run of each Stage

func (*RunStatistics) GetStartTime

func (rs *RunStatistics) GetStartTime() time.Time

GetStartTime returns the start time of the Sif pipeline

func (*RunStatistics) Start

func (rs *RunStatistics) Start(numStages int)

Start triggers statistics tracking, if it hasn't been started already

func (*RunStatistics) StartPartition

func (rs *RunStatistics) StartPartition()

StartPartition tracks the beginning of the processing of a partition

func (*RunStatistics) StartShuffle

func (rs *RunStatistics) StartShuffle()

StartShuffle tracks the beginning of the shuffle portion of a Stage

func (*RunStatistics) StartStage

func (rs *RunStatistics) StartStage()

StartStage tracks the beginning of a new Stage

func (*RunStatistics) StartTransform

func (rs *RunStatistics) StartTransform()

StartTransform tracks the beginning of the transformation portion of a Stage

func (*RunStatistics) ToMessage

func (rs *RunStatistics) ToMessage() *stats.MStatisticsResponse

ToMessage converts this struct into a protobuf message

Jump to

Keyboard shortcuts

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