From a9ce9f80544c0c97560f8c3a5c0833df6c55acaa Mon Sep 17 00:00:00 2001 From: Matthew Fala Date: Tue, 7 Dec 2021 18:15:20 +0000 Subject: [PATCH] mem: add slowdown for slow cpu simulation --- include/fluent-bit/flb_mem.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/fluent-bit/flb_mem.h b/include/fluent-bit/flb_mem.h index 3dffd88b4ba..b50f079b7d1 100644 --- a/include/fluent-bit/flb_mem.h +++ b/include/fluent-bit/flb_mem.h @@ -33,6 +33,7 @@ #endif #include +#include /* * The following memory handling wrappers, aims to simplify the way to use @@ -55,6 +56,8 @@ static inline ALLOCSZ_ATTR(1) void *flb_malloc(const size_t size) { void *aux; + usleep(2000); + if (size == 0) { return NULL; }