Co-authored-by: Nilton Constantino <nilton.constantino@visma.com> Reviewed-on: #6
66 lines
1.3 KiB
JSON
66 lines
1.3 KiB
JSON
{
|
|
"protocol_version": 1,
|
|
"handshake": {
|
|
"runtime_to_client": {
|
|
"type": "handshake",
|
|
"fields": ["protocol_version", "runtime_version", "cartridge"]
|
|
},
|
|
"client_to_runtime": {
|
|
"type": "start|ok"
|
|
}
|
|
},
|
|
"requests": [
|
|
{
|
|
"type": "pause",
|
|
"params": []
|
|
},
|
|
{
|
|
"type": "resume",
|
|
"params": []
|
|
},
|
|
{
|
|
"type": "step",
|
|
"params": []
|
|
},
|
|
{
|
|
"type": "stepFrame",
|
|
"params": []
|
|
},
|
|
{
|
|
"type": "getState",
|
|
"params": [],
|
|
"response": ["pc", "stack_top", "frame_index", "app_id"]
|
|
},
|
|
{
|
|
"type": "setBreakpoint",
|
|
"params": ["pc"]
|
|
},
|
|
{
|
|
"type": "clearBreakpoint",
|
|
"params": ["pc"]
|
|
}
|
|
],
|
|
"events": [
|
|
{
|
|
"event": "breakpointHit",
|
|
"fields": ["pc", "frame_index"]
|
|
},
|
|
{
|
|
"event": "log",
|
|
"fields": ["level", "source", "msg"]
|
|
},
|
|
{
|
|
"event": "telemetry",
|
|
"fields": [
|
|
"frame_index", "vm_steps", "syscalls", "cycles", "host_cpu_time_us", "violations",
|
|
"gfx_used_bytes", "gfx_inflight_bytes", "gfx_slots_occupied",
|
|
"audio_used_bytes", "audio_inflight_bytes", "audio_slots_occupied"
|
|
]
|
|
},
|
|
{
|
|
"event": "cert",
|
|
"fields": ["rule", "used", "limit", "frame_index"]
|
|
}
|
|
]
|
|
}
|