Skip to content

Commit

Permalink
examples/run: enable tracing
Browse files Browse the repository at this point in the history
  • Loading branch information
yamt committed Aug 12, 2024
1 parent 2dce9a6 commit fa08024
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/run/run.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <toywasm/mem.h>
#include <toywasm/module.h>
#include <toywasm/report.h>
#include <toywasm/toywasm_config.h>
#include <toywasm/type.h>
#include <toywasm/xlog.h>

Expand All @@ -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);
Expand Down

0 comments on commit fa08024

Please sign in to comment.