csvreader

package
v0.0.0-...-714ef56 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateDeltas

func CalculateDeltas(data []*RowData) []float64

func ReadCsvFile

func ReadCsvFile[R any](path string, rowparser RowParser[R]) ([]*R, error)

Types

type MemoverheadRowData

type MemoverheadRowData struct {
	MemSpec     float64
	MemOverhead float64
}

type RowData

type RowData struct {
	Idx   int
	Start time.Time
	Exec  time.Duration
	End   time.Time
}

func OutputDataRowParser

func OutputDataRowParser(row []string) (*RowData, error)

type RowParser

type RowParser[R any] func([]string) (*R, error)

func CreateMemOverHeadParser

func CreateMemOverHeadParser(actualColumnIdx int) RowParser[MemoverheadRowData]

Jump to

Keyboard shortcuts

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