curl --location --request GET '/debug/api/heap'{
"code": 0,
"message": "",
"data": {
"stats": {
"alloc": "19575096",
"totalAlloc": "172094296",
"sys": "101798168",
"numGC": 12,
"heapAlloc": "19575096",
"heapSys": "90931200",
"heapIdle": "66510848",
"heapInuse": "24420352",
"heapReleased": "57614336",
"heapObjects": "58174",
"gcCPUFraction": 0.00004508518460799377
},
"objects": [
{
"type": "m7s.live/v5/plugin/debug.init.0",
"count": "4",
"size": "9003008",
"sizePerc": 46.8449537992509,
"address": "0x14000019d80",
"refs": []
},
{
"type": "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa.(*builder).alias",
"count": "7",
"size": "2738448",
"sizePerc": 14.248845501598023,
"address": "0x140000172c0",
"refs": []
},
{
"type": "github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi.(*Pool[...]).Allocate",
"count": "52",
"size": "1785984",
"sizePerc": 9.29293164753395,
"address": "0x140000156a0",
"refs": []
},
{
"type": "m7s.live/v5/pkg/util.(*ScalableMemoryAllocator).Read",
"count": "102",
"size": "1671168",
"sizePerc": 8.695514626976507,
"address": "0x140000110e0",
"refs": []
},
{
"type": "m7s.live/v5/pkg/util.(*RecyclableMemory).NextN",
"count": "20",
"size": "1117696",
"sizePerc": 5.815658220186801,
"address": "0x14000010000",
"refs": []
},
{
"type": "gopkg.in/yaml%2ev3.yaml_emitter_emit",
"count": "8",
"size": "510592",
"sizePerc": 2.656740797105491,
"address": "0x14000012400",
"refs": []
},
{
"type": "github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi.(*IDedPool[...]).GetOrAllocate",
"count": "2",
"size": "450560",
"sizePerc": 2.344378943547588,
"address": "0x14000015d60",
"refs": []
},
{
"type": "github.com/tetratelabs/wazero/internal/engine/wazevo.(*engine).compileLocalWasmFunction",
"count": "18",
"size": "448896",
"sizePerc": 2.33572072585835,
"address": "0x140000134e0",
"refs": []
},
{
"type": "github.com/tetratelabs/wazero/internal/engine/wazevo/backend.(*compiler).Emit4Bytes",
"count": "1",
"size": "352256",
"sizePerc": 1.8328780831372053,
"address": "0x14000015460",
"refs": []
},
{
"type": "github.com/tetratelabs/wazero/internal/engine/wazevo/backend.(*compiler).assignVirtualRegisters",
"count": "1",
"size": "327680",
"sizePerc": 1.7050028680346097,
"address": "0x14000016c00",
"refs": []
},
{
"type": "github.com/tetratelabs/wazero/internal/engine/wazevo/frontend.(*Compiler).recordKnownSafeBound",
"count": "1",
"size": "204800",
"sizePerc": 1.065626792521631,
"address": "0x14000018700",
"refs": []
},
{
"type": "runtime.makeBucketArray",
"count": "11",
"size": "155616",
"sizePerc": 0.8097098581301081,
"address": "0x14000011440",
"refs": []
},
{
"type": "github.com/tetratelabs/wazero/internal/engine/wazevo.(*engine).compileModule",
"count": "1",
"size": "139264",
"sizePerc": 0.7246262189147091,
"address": "0x14000013f00",
"refs": []
},
{
"type": "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64.(*machine).resolveRelativeAddresses",
"count": "1",
"size": "131072",
"sizePerc": 0.6820011472138439,
"address": "0x14000015580",
"refs": []
},
{
"type": "github.com/emiago/sipgo/sip.(*transportUDP).readListenerConnection",
"count": "1",
"siz
扫码关注公众号"不卡科技"
包含最佳实践、技术原理、最新活动

扫 码关注公众号
扫码加入不卡科技QQ 群

扫码加入交流群