Merge pull request #94587 from alvinhochun/bench-end-main-setup

End benchmark of `Main::setup` properly before calling `setup2`
This commit is contained in:
Rémi Verschelde 2024-07-22 14:13:05 +02:00
commit edcf78935e
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -2459,11 +2459,12 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
} }
#endif #endif
OS::get_singleton()->benchmark_end_measure("Startup", "Main::Setup");
if (p_second_phase) { if (p_second_phase) {
return setup2(); return setup2();
} }
OS::get_singleton()->benchmark_end_measure("Startup", "Main::Setup");
return OK; return OK;
error: error: