mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-03-11 13:41:50 +09:00
command to see memory allocation status
This commit is contained in:
@@ -169,6 +169,10 @@ class VMJSR223Delegate(val vm: VM) {
|
||||
fun unsetSysrq() {
|
||||
vm.sysrqDown = false
|
||||
}
|
||||
|
||||
fun getMallocStatus(): IntArray {
|
||||
return intArrayOf(vm.MALLOC_UNIT, vm.allocatedBlockCount)
|
||||
}
|
||||
}
|
||||
|
||||
class VMSerialDebugger(val vm: VM) {
|
||||
|
||||
Reference in New Issue
Block a user