haku2: add stats + fix crash w uninit vm
This commit is contained in:
parent
e667c6336a
commit
00a48527ca
12 changed files with 88 additions and 71 deletions
|
@ -94,11 +94,9 @@ export class User {
|
|||
return {
|
||||
astSize: this.haku.astSize,
|
||||
astSizeMax: wallInfo.hakuLimits.ast_capacity,
|
||||
numRefs: this.haku.numRefs,
|
||||
numRefsMax: wallInfo.hakuLimits.ref_capacity,
|
||||
fuel: wallInfo.hakuLimits.fuel - this.haku.remainingFuel,
|
||||
fuelMax: wallInfo.hakuLimits.fuel,
|
||||
memory: wallInfo.hakuLimits.memory - this.haku.remainingMemory,
|
||||
memory: this.haku.usedMemory,
|
||||
memoryMax: wallInfo.hakuLimits.memory,
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue