stats

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2026 License: MIT Imports: 21 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesPoolStats added in v0.10.4

func BytesPoolStats(topN int, ps ...*bytespool.CapacityPools) map[string]any

func MainStats added in v0.7.1

func MainStats() map[string]any

MainStats 主程序系统指标. MemoryInfo 失败时省略 MemRSS/MemVMS/MemSwap, 其余字段仍返回; 进程句柄不可用时返回 nil.

func MetricStats added in v0.7.1

func MetricStats() map[string]any

MetricStats 主程序运行指标

func MetricStatsDesc added in v0.10.0

func MetricStatsDesc() map[string]any

MetricStatsDesc 主程序运行指标注释

func MetricStatsWithBytesPoolStats added in v1.0.3

func MetricStatsWithBytesPoolStats(topN int, ps ...*bytespool.CapacityPools) map[string]any

MetricStatsWithBytesPoolStats 带内存池统计指标

func RedisDBSize added in v0.9.3

func RedisDBSize() int

RedisDBSize 当前数据库键数量

func RedisInfo added in v0.9.3

func RedisInfo() map[string]any

RedisInfo Redis 运行状态信息. 未初始化返回 nil; INFO 中空行、注释和无冒号行会被跳过, 不因此 panic.

func RedisStats added in v0.9.3

func RedisStats() map[string]any

RedisStats Redis 连接池统计信息

func SYSStats

func SYSStats() map[string]any

SYSStats 系统信息

func SYSStatsDesc added in v0.10.0

func SYSStatsDesc() map[string]any

SYSStatsDesc 系统信息指标注释

func WebStats added in v0.0.16

func WebStats() map[string]any

func WebStatsDesc added in v0.10.0

func WebStatsDesc() map[string]string

WebStatsDesc Web服务指标注释

Types

This section is empty.

Jump to

Keyboard shortcuts

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