From 8ae14549666bfc9255c59c34484d173909193b7c Mon Sep 17 00:00:00 2001 From: Vadim Sadokhov <65451602+astrophysik@users.noreply.github.com> Date: Fri, 3 Nov 2023 17:32:18 +0300 Subject: [PATCH] fix initialization time metrics (#929) --- server/php-runner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/php-runner.cpp b/server/php-runner.cpp index e1065953ee..56d588b80c 100644 --- a/server/php-runner.cpp +++ b/server/php-runner.cpp @@ -178,7 +178,6 @@ void PhpScript::init(script_t *script, php_query_data_t *data_to_set) noexcept { error_message = "??? error"; - script_time_stats.script_start_time = get_utime_monotonic(); script_time = 0; net_time = 0; script_init_rusage = get_rusage_info(); @@ -419,6 +418,7 @@ void PhpScript::run() noexcept { check_net_context_errors(); CurException = Optional{}; + script_time_stats.script_start_time = get_utime_monotonic(); run_main->run(); if (CurException.is_null()) { set_script_result(nullptr);