From 8e9e91be7e93ee6a6b8d9c9fc118515d1f0261c1 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Wed, 15 Mar 2023 15:13:00 +0200 Subject: [PATCH] builder: add a separate ALL_FRONT_STAGES timing metric --- vlib/v/builder/builder.v | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vlib/v/builder/builder.v b/vlib/v/builder/builder.v index a3dc5c4efc..1014b485f1 100644 --- a/vlib/v/builder/builder.v +++ b/vlib/v/builder/builder.v @@ -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')