Documentation
¶
Index ¶
- Constants
- Variables
- func OpenStat(path string, readonly int, size int64) (*os.File, error)
- func PurgeStatFile(ctx context.Context, dirname string, suffix string, ...) (deleted []string, err error)
- type IOViewer
- type Iostat
- type Stat
- type StatData
- type StatItem
- type StatIterator
- type StatMgr
- func (sm *StatMgr) ReadBegin(size uint64)
- func (sm *StatMgr) ReadEnd(t time.Time)
- func (sm *StatMgr) Reader(underlying io.Reader) io.Reader
- func (sm *StatMgr) ReaderAt(underlying io.ReaderAt) io.ReaderAt
- func (sm *StatMgr) ReaderCloser(underlying io.ReadCloser) io.ReadCloser
- func (sm *StatMgr) WriteBegin(size uint64)
- func (sm *StatMgr) WriteCloser(underlying io.WriteCloser) io.WriteCloser
- func (sm *StatMgr) WriteEnd(t time.Time)
- func (sm *StatMgr) Writer(underlying io.Writer) io.Writer
- func (sm *StatMgr) WriterAt(underlying io.WriterAt) io.WriterAt
- type StatMgrAPI
- type Viewer
Constants ¶
View Source
const ( KiB = 1024 MiB = KiB * 1024 GiB = MiB * 1024 )
View Source
const (
IOSTAT_DIRECTORY = "/dev/shm"
)
Variables ¶
View Source
var ErrInvalidParam = errors.New("iostat: invalid params")
Functions ¶
Types ¶
type Stat ¶
type Stat struct {
// contains filtered or unexported fields
}
func (*Stat) CopyReadStat ¶
func (*Stat) CopyWriteStat ¶
func (*Stat) WriteBegin ¶
type StatIterator ¶
type StatIterator struct { Stat *Stat // share memory LastStat atomic.Value // :Stat , last stat IoStat [maxType]atomic.Value // :StatData // contains filtered or unexported fields }
func (*StatIterator) Update ¶
func (iter *StatIterator) Update()
type StatMgr ¶
func StatInitWithShareMemory ¶
func (*StatMgr) ReaderCloser ¶
func (sm *StatMgr) ReaderCloser(underlying io.ReadCloser) io.ReadCloser
func (*StatMgr) WriteBegin ¶
func (*StatMgr) WriteCloser ¶
func (sm *StatMgr) WriteCloser(underlying io.WriteCloser) io.WriteCloser
type StatMgrAPI ¶
type Viewer ¶
type Viewer struct { StatIterator // contains filtered or unexported fields }
func NewIOViewer ¶
Click to show internal directories.
Click to hide internal directories.