📝 clarify runtime file export examples

This commit is contained in:
Nanaloveyuki
2026-06-13 23:44:05 +08:00
parent 61094732a8
commit ce3eb06c1c
4 changed files with 18 additions and 8 deletions
+5 -2
View File
@@ -48,10 +48,13 @@ Here are some specific examples provided.
When a queued file runtime snapshot should be printed directly:
```moonbit
println(stringify_runtime_file_state(snapshot, pretty=true))
match runtime.file_runtime_state() {
Some(snapshot) => println(stringify_runtime_file_state(snapshot, pretty=true))
None => ()
}
```
In this example, both file state and queue metrics are shown in one readable JSON payload.
In this example, both file state and queue metrics are shown in one readable JSON payload after the optional runtime snapshot is checked.
#### When Need Compact Runtime Snapshot Export