gonic

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NetStat

func NetStat(c *gin.Context)

NetStat: show net stat information like shell `netstat`

func OsStat

func OsStat(c *gin.Context)

Types

type CpuStat added in v0.0.9

type CpuStat struct {
	Total  string
	User   string
	System string
	Idle   string
}

type MemoryStat added in v0.0.9

type MemoryStat struct {
	Total         string
	Used          string
	Free          string
	Cached        string
	GoHeapAlloc   string //go heap使用到的内存
	GoHeapInuse   string //go heap向操作系统申请的内存(包括GoHeapAlloc, 已经被gc回收但未复用的内存)
	GoOOMScore    int    // 这个文件显示了一个进程被 OOM Killer 选中的得分。得分越高,进程被杀死的可能性越大。这个得分是根据进程的内存使用和运行时间等因素自动计算的,你不能直接修改这个文件
	GoOOMScoreAdj int    // 允许你调整一个进程的 OOM 得分。你可以写入一个从 -1000 到 1000 的值到这个文件,这个值将会被添加到进程的 OOM 得分上。例如,如果你写入 -500,那么这个进程的 OOM 得分将会减少 500,这将减少它被 OOM Killer 杀死的可能性。
}

Jump to

Keyboard shortcuts

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