mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
v: add more timing points
This commit is contained in:
@@ -53,6 +53,7 @@ fn main() {
|
||||
}
|
||||
timers.start('v start')
|
||||
timers.show('v start')
|
||||
timers.start('parse_CLI_args')
|
||||
args := os.args[1..]
|
||||
// args = 123
|
||||
if args.len == 0 || args[0] in ['-', 'repl'] {
|
||||
@@ -71,16 +72,11 @@ fn main() {
|
||||
}
|
||||
args_and_flags := util.join_env_vflags_and_os_args()[1..]
|
||||
prefs, command := pref.parse_args(external_tools, args_and_flags)
|
||||
if prefs.is_verbose {
|
||||
// println('args= ')
|
||||
// println(args) // QTODO
|
||||
// println('prefs= ')
|
||||
// println(prefs) // QTODO
|
||||
}
|
||||
if prefs.use_cache && os.user_os() == 'windows' {
|
||||
eprintln('-usecache is currently disabled on windows')
|
||||
exit(1)
|
||||
}
|
||||
timers.show('parse_CLI_args')
|
||||
// Start calling the correct functions/external tools
|
||||
// Note for future contributors: Please add new subcommands in the `match` block below.
|
||||
if command in external_tools {
|
||||
|
Reference in New Issue
Block a user