1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

profile: support for -profile-no-inline (with it, [inline] fns will not get profiled)

This commit is contained in:
Delyan Angelov
2020-05-08 14:59:48 +03:00
parent 847a1035a5
commit 4c320e1512
4 changed files with 12 additions and 1 deletions

View File

@ -74,7 +74,10 @@ The build flags are shared by the build and run commands:
c) an average for each function (i.e. (b) / (a) )
d) the function name
NB: if you want to output the profile info to stdout, use `-profile -`.
-profile-no-inline
Skip [inline] functions when profiling.
-stats
Enable more detailed statistics reporting, while compiling test files.
You can use that with `v test` too, for example:

View File

@ -150,6 +150,9 @@ fn parse_args(args []string) (&pref.Preferences, string) {
res.is_prof = true
i++
}
'-profile-no-inline' {
res.profile_no_inline = true
}
'-prod' {
res.is_prod = true
}