v help: add an example of using both `-prof` and `run` (#13432)

pull/13440/head
Artem 2022-02-11 10:24:07 +01:00 committed by GitHub
parent a21f4563b3
commit e0618f94e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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 !