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

builder: add a separate ALL_FRONT_STAGES timing metric

This commit is contained in:
Delyan Angelov 2023-03-15 15:13:00 +02:00
parent b71c131678
commit 8e9e91be7e

View File

@ -102,6 +102,10 @@ pub fn (mut b Builder) interpret_text(code string, v_files []string) ! {
pub fn (mut b Builder) front_stages(v_files []string) ! {
mut timers := util.get_timers()
util.timing_start('ALL_FRONT_STAGES')
defer {
timers.show('ALL_FRONT_STAGES')
}
util.timing_start('PARSE')
util.timing_start('Builder.front_stages.parse_files')