From baf1cdabd1c493e3e29b8cf4213717aebca7aa1b Mon Sep 17 00:00:00 2001 From: Alvin Wong Date: Sun, 21 Jul 2024 21:43:29 +0800 Subject: [PATCH] End benchmark of Main::Setup properly before calling setup2 --- main/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main/main.cpp b/main/main.cpp index 870f7d31b83..bbb16d15075 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -2459,11 +2459,12 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph } #endif + OS::get_singleton()->benchmark_end_measure("Startup", "Main::Setup"); + if (p_second_phase) { return setup2(); } - OS::get_singleton()->benchmark_end_measure("Startup", "Main::Setup"); return OK; error: