Added memory tracker to serial port

This commit is contained in:
Alex
2023-03-10 21:16:19 +02:00
parent 10364e17f0
commit a101277991
6 changed files with 328 additions and 11 deletions

View File

@ -27,8 +27,16 @@ test_mem_new_delete::~test_mem_new_delete()
;
}
extern bool EnableExternalMemoryTracer;
void TestMemoryAllocation()
{
if (EnableExternalMemoryTracer)
{
debug("The test is disabled when the external memory tracer is enabled.");
return;
}
void *tmpAlloc1 = kmalloc(176);
void *tmpAlloc2 = kmalloc(511);
void *tmpAlloc3 = kmalloc(1027);