From fa0802467f6b00c1f2f95a6c0b27b1fa9baecdc5 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Mon, 12 Aug 2024 15:15:01 +0900 Subject: [PATCH] examples/run: enable tracing --- examples/run/run.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/run/run.c b/examples/run/run.c index a35ff208..a96b7ad2 100644 --- a/examples/run/run.c +++ b/examples/run/run.c @@ -9,6 +9,7 @@ #include #include #include +#include #include #include @@ -21,6 +22,10 @@ main(int argc, char **argv) struct instance *inst = NULL; int ret; +#if defined(TOYWASM_ENABLE_TRACING) + xlog_tracing = 5; +#endif + struct mem_context mctx0; struct mem_context *mctx = &mctx0; mem_context_init(mctx);