From e0618f94e8d1afb6df880846450bc0f35b480894 Mon Sep 17 00:00:00 2001 From: Artem Date: Fri, 11 Feb 2022 10:24:07 +0100 Subject: [PATCH] v help: add an example of using both `-prof` and `run` (#13432) --- cmd/v/help/build.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/v/help/build.txt b/cmd/v/help/build.txt index aba89a75f2..7da47761b9 100644 --- a/cmd/v/help/build.txt +++ b/cmd/v/help/build.txt @@ -85,6 +85,9 @@ NB: the build flags are shared with the run command too: c) an average for each function (i.e. (b) / (a) ) d) the function name + NB: you can also combine this command with `run` command. + For example - `v -prof prof.txt run main.v` + NB: the profiler is *NOT* currently thread safe, so look at the profile results of multithreaded programs very sceptically !