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

v.util.timers: improve tracing by supporting -d trace_timers_creation

This commit is contained in:
Delyan Angelov
2021-12-05 11:55:41 +02:00
parent 2754368873
commit 229d2fb667
5 changed files with 30 additions and 18 deletions

View File

@@ -50,7 +50,7 @@ fn main() {
$if time_v ? {
timers_should_print = true
}
mut timers := util.new_timers(timers_should_print)
mut timers := util.new_timers(should_print: timers_should_print, label: 'main')
timers.start('v total')
defer {
timers.show('v total')