benchmark

package
v0.0.0-...-d36560d Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2017 License: BSD-3-Clause Imports: 9 Imported by: 0

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
y or Y : Canonical URL