推进 INI 面板运行摘要 helper
This commit is contained in:
14
wasm-port/runtime/ui/ini-panel/run-summary.js
Normal file
14
wasm-port/runtime/ui/ini-panel/run-summary.js
Normal file
@@ -0,0 +1,14 @@
|
||||
export function createRunSummary(program, runtime = {}, snapshot = null) {
|
||||
const metadata = snapshot?.metadata ?? {};
|
||||
return {
|
||||
runStatus: runtime.runStatus ?? "ok",
|
||||
programSource: program.source,
|
||||
snapshotLabel: runtime.snapshotLabel ?? metadata.snapshotLabel ?? null,
|
||||
workflow: metadata.workflow ?? null,
|
||||
programOpfsPath: program.opfsPath,
|
||||
programWasmPath: program.wasmPath,
|
||||
iniWasmPath: runtime.iniWasmPath ?? null,
|
||||
canonicalEventCount: runtime.canonicalEventCount ?? 0,
|
||||
motionSnapshotCount: runtime.motionSnapshotCount ?? 0,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user