stats

package
v1.16.4 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SystemStats

type SystemStats struct {
	Process struct {
		PID          int
		Uptime       time.Duration
		NumGoroutine int
		DBSize       int64
	}
	Platform struct {
		GoVersion string
		GOOS      string
		GOARCH    string
		GOROOT    string
	}
	Discord struct {
		Intents  int
		Sharding bool
		Shards   int
		Guilds   int
	}
	Mem struct {
		Allocated string
		Total     string
		Sys       string
		Lookups   uint64
		Mallocs   uint64
		Frees     uint64
	}
	Heap struct {
		Alloc    string
		Sys      string
		Idle     string
		Inuse    string
		Released string
		Objects  uint64
	}
	GC struct {
		NextGC       string
		LastGC       string
		PauseTotalNs string
		PauseNs      string
		NumGC        uint32
	}
	Misc struct {
		StackInuse  string
		StackSys    string
		MSpanInuse  string
		MSpanSys    string
		MCacheInuse string
		MCacheSys   string
		GCSys       string
		BuckHashSys string
		OtherSys    string
	}
}

SystemStats represents stats of the instance.

func Get

func Get() SystemStats

Get returns a populated SystemStats.

Jump to

Keyboard shortcuts

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