stats

package
v0.6.9 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2022 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadFsStats added in v0.2.10

func ReadFsStats(path string) (*syscall.Statfs_t, error)

https://linux.die.net/man/2/statfs

func ReadSysInfo added in v0.2.10

func ReadSysInfo() (*syscall.Sysinfo_t, error)

https://linux.die.net/man/2/sysinfo

Types

type Stats

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

一组计数器

func New

func New(n int) *Stats

func (*Stats) Add

func (s *Stats) Add(i int, delta int64) int64

func (*Stats) Clone

func (s *Stats) Clone() *Stats

func (*Stats) Copy

func (s *Stats) Copy() []int64

func (*Stats) Get

func (s *Stats) Get(i int) int64

func (*Stats) Set

func (s *Stats) Set(i int, v int64)

Jump to

Keyboard shortcuts

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