Update Diagnostics.md

extensions
Steven Massey 4 years ago committed by GitHub
parent 092449fe17
commit fa52261301
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,7 +1,7 @@
## Logs ## Logs
To enable various logs, modify the defines in m3_config.h To enable various logs, modify the defines in `m3_config.h`. These are only enabled when compiled in debug mode.
```C ```C
# define d_m3LogParse 0 // .wasm binary decoding info # define d_m3LogParse 0 // .wasm binary decoding info
@ -19,7 +19,7 @@ To enable various logs, modify the defines in m3_config.h
## Operation Profiling ## Operation Profiling
To profile the interpreter's operations enable `d_m3EnableOpProfiling` in `m3_config.h` To profile the interpreter's operations enable `d_m3EnableOpProfiling` in `m3_config.h`. This profiling option works in either release or debug builds.
When a runtime is released or `m3_PrintProfilerInfo ()` is called, a table of the executed operations and When a runtime is released or `m3_PrintProfilerInfo ()` is called, a table of the executed operations and
their instance counts will be printed to stderr. their instance counts will be printed to stderr.

Loading…
Cancel
Save