Skip to content

stats

查看统计信息

接口URL

/public/stats

请求方式

GET

响应示例

成功

json
{
  "code": 0,
  "message": "统计信息获取成功",
  "data": {
    "start_time": "2025-09-16T22:20:32.389529378+08:00",
    "uptime": "17h46m59.566182347s",
    "goroutines": 9,
    "memory_allocated": "2.3 MB",
    "memory_used": "12.2 MB",
    "gc_details": "GC次数: 523, 下次GC目标: 4.9 MB",
    "online_clients": 1,
    "online_uids": 1
  }
}