benchmark

package
Version: v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2019 License: BSD-3-Clause Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadLines

func ReadLines(name string) []string

Types

type LatencyMap

type LatencyMap struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewLatencyMap

func NewLatencyMap() *LatencyMap

func (*LatencyMap) Add

func (m *LatencyMap) Add(name string, dt time.Duration)

func (*LatencyMap) Counts

func (m *LatencyMap) Counts() map[string]int

func (*LatencyMap) Get

func (m *LatencyMap) Get(name string) (count int, dt time.Duration)

type StatFS

type StatFS struct {
	pathfs.FileSystem
	// contains filtered or unexported fields
}

func NewStatFS

func NewStatFS() *StatFS

func (*StatFS) Add

func (fs *StatFS) Add(name string, a *fuse.Attr)

func (*StatFS) AddFile

func (fs *StatFS) AddFile(name string)

func (*StatFS) GetAttr

func (fs *StatFS) GetAttr(name string, context *fuse.Context) (*fuse.Attr, fuse.Status)

func (*StatFS) OpenDir

func (fs *StatFS) OpenDir(name string, context *fuse.Context) (stream []fuse.DirEntry, status fuse.Status)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto