runtime
查看运行时信息
接口URL
/public/runtime
请求方式
GET
响应示例
成功
json
{
"code": 0,
"message": "成功",
"data": {
"arch": "amd64",
"compiler": "gc",
"gomaxprocs": 4,
"mem_stats": {
"alloc": "2.4 MB",
"buck_hash_sys": "3.7 KB",
"frees": 100568,
"gc_cpu_fraction": 0.0000030195924186450445,
"gc_sys": "3.1 MB",
"heap_alloc": "2.4 MB",
"heap_idle": "3.0 MB",
"heap_inuse": "4.5 MB",
"heap_objects": 21600,
"heap_released": "2.5 MB",
"heap_sys": "7.5 MB",
"last_gc": "2025-09-17T16:07:10+08:00",
"lookups": 0,
"mallocs": 122168,
"mcache_inuse": "4.7 KB",
"mcache_sys": "15.3 KB",
"mspan_inuse": "114.4 KB",
"mspan_sys": "127.5 KB",
"next_gc": "4.9 MB",
"num_forced_gc": 0,
"num_gc": 523,
"other_sys": "944.6 KB",
"pause_total_ns": "24.267613ms",
"stack_inuse": "544.0 KB",
"stack_sys": "544.0 KB",
"sys": "12.2 MB",
"total_alloc": "13.9 MB"
},
"num_cgo_call": 0,
"num_cpu": 4,
"num_goroutine": 9,
"os": "linux",
"start_time": "2025-09-16T22:20:32.389529378+08:00",
"uptime": "17h48m8.428202328s",
"version": "go1.24.5"
}
}