Fixes for mac

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
Esteban Papp
2021-11-30 18:15:22 -08:00
parent 0f5cb54a38
commit fbd2d60fc1
@@ -9,7 +9,7 @@
#include <AzCore/PlatformIncl.h>
#include <AzCore/Debug/Trace.h>
#include <malloc.h>
#include <malloc/malloc.h>
#include <sys/resource.h>
namespace Benchmark
@@ -25,7 +25,7 @@ namespace Benchmark
size_t GetMemorySize(void* memory)
{
return memory ? malloc_usable_size(memory) : 0;
return memory ? malloc_size(memory) : 0;
}
}
}