Skip to content

Commit e0618f9

Browse files
authored
v help: add an example of using both -prof and run (#13432)
1 parent a21f456 commit e0618f9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmd/v/help/build.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ NB: the build flags are shared with the run command too:
8585
c) an average for each function (i.e. (b) / (a) )
8686
d) the function name
8787

88+
NB: you can also combine this command with `run` command.
89+
For example - `v -prof prof.txt run main.v`
90+
8891
NB: the profiler is *NOT* currently thread safe, so look at the profile results of
8992
multithreaded programs very sceptically !
9093

0 commit comments

Comments
 (0)