added a basic heap inspection utility to the debugger and modified the impl of the buffer object

This commit is contained in:
Francesco Cozzuto
2021-12-07 12:54:55 +01:00
parent f751cbcbd5
commit 51d744ef2e
11 changed files with 653 additions and 75 deletions
+3
View File
@@ -81,6 +81,9 @@ _Bool Heap_StartCollection(Heap *heap, Error *error);
_Bool Heap_StopCollection(Heap *heap);
void Heap_CollectReference(Object **referer, void *heap);
float Heap_GetUsagePercentage(Heap *heap);
unsigned int Heap_GetObjectCount(Heap *heap);
void *Heap_GetPointer(Heap *heap);
unsigned int Heap_GetSize(Heap *heap);
const TypeObject* Object_GetType(const Object *obj);
const char* Object_GetName(const Object *obj);