diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-11-01 21:39:00 +0000 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-11-01 21:39:00 +0000 |
commit | 32c1bcb859426c73e3bc45fa537e932018346d07 (patch) | |
tree | bb65a479169ba91418c2422181d5a663a5900c80 /vm/runtime.h | |
parent | be312cfbbf6daf28c7a99464f2f59bd0c1dd355e (diff) | |
download | ovm-32c1bcb859426c73e3bc45fa537e932018346d07.tar.gz ovm-32c1bcb859426c73e3bc45fa537e932018346d07.tar.bz2 ovm-32c1bcb859426c73e3bc45fa537e932018346d07.zip |
Added a print_heap mechanism into vm
Pretty simple implementation, nothing massive.
In VERBOSE mode, heap is tracked for any allocations/deletions,
printing it if so.
Diffstat (limited to 'vm/runtime.h')
-rw-r--r-- | vm/runtime.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vm/runtime.h b/vm/runtime.h index 9ac1b47..c8f5d49 100644 --- a/vm/runtime.h +++ b/vm/runtime.h @@ -70,6 +70,7 @@ void vm_stop(vm_t *); void vm_print_registers(vm_t *, FILE *); void vm_print_stack(vm_t *, FILE *); void vm_print_program(vm_t *, FILE *); +void vm_print_heap(vm_t *, FILE *); void vm_print_all(vm_t *, FILE *); // Execution routines |