From 0ea5235cd1ff2a73c72647932cfba8f65bea670a Mon Sep 17 00:00:00 2001 From: daan Date: Sun, 30 Oct 2022 14:55:32 -0700 Subject: [PATCH] update readme for valgrind --- readme.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 46b48ef6..2dfadfb4 100644 --- a/readme.md +++ b/readme.md @@ -350,7 +350,12 @@ executables. To build with valgrind support, use the `MI_VALGRIND=ON` cmake opti ``` This can also be combined with secure mode or debug mode. -You can then run your programs directly under the `valgrind ` tool. +You can then run your programs directly under valgrind: + +``` +> valgrind +``` + If you rely on overriding `malloc`/`free` by mimalloc (instead of using the `mi_malloc`/`mi_free` API directly), you also need to tell `valgrind` to not intercept those calls itself, and use: