Files
marqdo-view/tests/golden/trace-v2/control-flow.trace.json
T

316 lines
7.6 KiB
JSON

{
"events": [
{
"detail": null,
"function_id": "root:control-flow@0.1.0::index.mq.md::演示.main",
"kind": "call.enter",
"module_id": "root:control-flow@0.1.0::index.mq.md",
"seq": 0,
"span": null
},
{
"detail": "initial_pages=1 max_pages=1",
"function_id": null,
"kind": "memory.new",
"module_id": "root:control-flow@0.1.0::index.mq.md",
"seq": 1,
"span": {
"end": 230,
"start": 214
}
},
{
"detail": "byte",
"function_id": "root:control-flow@0.1.0::index.mq.md::演示.main",
"kind": "memory.write",
"module_id": "root:control-flow@0.1.0::index.mq.md",
"seq": 2,
"span": {
"end": 243,
"start": 234
}
},
{
"detail": "kind=stdio descriptor=stdout",
"function_id": null,
"kind": "resource.open",
"module_id": "root:control-flow@0.1.0::index.mq.md",
"seq": 3,
"span": {
"end": 304,
"start": 261
}
},
{
"detail": "ok",
"duration_micros": 14,
"kind": "effect",
"module_id": "root:control-flow@0.1.0::index.mq.md",
"operation": "resource.open",
"seq": 4,
"span": {
"end": 304,
"start": 261
}
},
{
"detail": "continue",
"function_id": "root:control-flow@0.1.0::index.mq.md::演示.main",
"kind": "loop.iteration",
"module_id": "root:control-flow@0.1.0::index.mq.md",
"seq": 5,
"span": {
"end": 322,
"start": 307
}
},
{
"detail": "false",
"function_id": "root:control-flow@0.1.0::index.mq.md::演示.main",
"kind": "branch.eval",
"module_id": "root:control-flow@0.1.0::index.mq.md",
"seq": 6,
"span": {
"end": 336,
"start": 324
}
},
{
"detail": "true",
"function_id": "root:control-flow@0.1.0::index.mq.md::演示.main",
"kind": "branch.eval",
"module_id": "root:control-flow@0.1.0::index.mq.md",
"seq": 7,
"span": {
"end": 336,
"start": 324
}
},
{
"detail": "byte",
"function_id": "root:control-flow@0.1.0::index.mq.md::演示.main",
"kind": "memory.write",
"module_id": "root:control-flow@0.1.0::index.mq.md",
"seq": 8,
"span": {
"end": 380,
"start": 371
}
},
{
"detail": "kind=stdio count=2",
"function_id": null,
"kind": "resource.write",
"module_id": "root:control-flow@0.1.0::index.mq.md",
"seq": 9,
"span": {
"end": 434,
"start": 398
}
},
{
"detail": "kind=stdio count=2",
"duration_micros": 21,
"kind": "effect",
"module_id": "root:control-flow@0.1.0::index.mq.md",
"operation": "resource.write",
"seq": 10,
"span": {
"end": 434,
"start": 398
}
},
{
"detail": "continue",
"function_id": "root:control-flow@0.1.0::index.mq.md::演示.main",
"kind": "loop.iteration",
"module_id": "root:control-flow@0.1.0::index.mq.md",
"seq": 11,
"span": {
"end": 322,
"start": 307
}
},
{
"detail": "false",
"function_id": "root:control-flow@0.1.0::index.mq.md::演示.main",
"kind": "branch.eval",
"module_id": "root:control-flow@0.1.0::index.mq.md",
"seq": 12,
"span": {
"end": 336,
"start": 324
}
},
{
"detail": "true",
"function_id": "root:control-flow@0.1.0::index.mq.md::演示.main",
"kind": "branch.eval",
"module_id": "root:control-flow@0.1.0::index.mq.md",
"seq": 13,
"span": {
"end": 336,
"start": 324
}
},
{
"detail": "byte",
"function_id": "root:control-flow@0.1.0::index.mq.md::演示.main",
"kind": "memory.write",
"module_id": "root:control-flow@0.1.0::index.mq.md",
"seq": 14,
"span": {
"end": 380,
"start": 371
}
},
{
"detail": "kind=stdio count=2",
"function_id": null,
"kind": "resource.write",
"module_id": "root:control-flow@0.1.0::index.mq.md",
"seq": 15,
"span": {
"end": 434,
"start": 398
}
},
{
"detail": "kind=stdio count=2",
"duration_micros": 0,
"kind": "effect",
"module_id": "root:control-flow@0.1.0::index.mq.md",
"operation": "resource.write",
"seq": 16,
"span": {
"end": 434,
"start": 398
}
},
{
"detail": "continue",
"function_id": "root:control-flow@0.1.0::index.mq.md::演示.main",
"kind": "loop.iteration",
"module_id": "root:control-flow@0.1.0::index.mq.md",
"seq": 17,
"span": {
"end": 322,
"start": 307
}
},
{
"detail": "true",
"function_id": "root:control-flow@0.1.0::index.mq.md::演示.main",
"kind": "branch.eval",
"module_id": "root:control-flow@0.1.0::index.mq.md",
"seq": 18,
"span": {
"end": 336,
"start": 324
}
},
{
"detail": "byte",
"function_id": "root:control-flow@0.1.0::index.mq.md::演示.main",
"kind": "memory.write",
"module_id": "root:control-flow@0.1.0::index.mq.md",
"seq": 19,
"span": {
"end": 348,
"start": 339
}
},
{
"detail": "kind=stdio count=2",
"function_id": null,
"kind": "resource.write",
"module_id": "root:control-flow@0.1.0::index.mq.md",
"seq": 20,
"span": {
"end": 434,
"start": 398
}
},
{
"detail": "kind=stdio count=2",
"duration_micros": 0,
"kind": "effect",
"module_id": "root:control-flow@0.1.0::index.mq.md",
"operation": "resource.write",
"seq": 21,
"span": {
"end": 434,
"start": 398
}
},
{
"detail": "exit",
"function_id": "root:control-flow@0.1.0::index.mq.md::演示.main",
"kind": "loop.iteration",
"module_id": "root:control-flow@0.1.0::index.mq.md",
"seq": 22,
"span": {
"end": 322,
"start": 307
}
},
{
"detail": "flushed_bytes=0",
"function_id": null,
"kind": "resource.close",
"module_id": "root:control-flow@0.1.0::index.mq.md",
"seq": 23,
"span": {
"end": 484,
"start": 462
}
},
{
"detail": "flushed_bytes=0",
"duration_micros": 0,
"kind": "effect",
"module_id": "root:control-flow@0.1.0::index.mq.md",
"operation": "resource.close",
"seq": 24,
"span": {
"end": 484,
"start": 462
}
},
{
"detail": "Int",
"function_id": "root:control-flow@0.1.0::index.mq.md::演示.main",
"kind": "return",
"module_id": "root:control-flow@0.1.0::index.mq.md",
"seq": 25,
"span": {
"end": 497,
"start": 487
}
},
{
"detail": "return",
"function_id": "root:control-flow@0.1.0::index.mq.md::演示.main",
"kind": "call.exit",
"module_id": "root:control-flow@0.1.0::index.mq.md",
"seq": 26,
"span": null
}
],
"limits": {
"max_bytes": 33554432,
"max_events": 100000
},
"run": {
"entry": "root:control-flow@0.1.0::index.mq.md::main",
"id": "29-1795354081718410176",
"status": "ok"
},
"schema": "marqdo.trace",
"schema_version": 2,
"source": {
"analysis_digest": "sha256:392c82598cdd9d649951133df9a364d85bca7036aa653a4139aab190e9040af4",
"root_id": "root:control-flow@0.1.0"
},
"truncated": null
}