From 2253c8f7a73b1b2cdc59e912e4c223c82751740b Mon Sep 17 00:00:00 2001 From: Peter Stockings Date: Tue, 2 Dec 2025 20:08:56 +1100 Subject: [PATCH] Show execution time in logs screen for http and timer functions --- templates/dashboard/http_functions/logs.html | 2 ++ templates/dashboard/timer_functions/logs.html | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/templates/dashboard/http_functions/logs.html b/templates/dashboard/http_functions/logs.html index 51a59d4..623b908 100644 --- a/templates/dashboard/http_functions/logs.html +++ b/templates/dashboard/http_functions/logs.html @@ -44,6 +44,8 @@ history_url=url_for('http.history', function_id=function_id)) }} {{ invocation.invocation_time.strftime('%Y-%m-%d %H:%M:%S') }} + {{ "%.2f"|format(invocation.execution_time or + 0) }}ms v{{ invocation.version_number }} diff --git a/templates/dashboard/timer_functions/logs.html b/templates/dashboard/timer_functions/logs.html index d07a2da..acddfd4 100644 --- a/templates/dashboard/timer_functions/logs.html +++ b/templates/dashboard/timer_functions/logs.html @@ -12,7 +12,7 @@ cancel_url=url_for('timer.overview'), logs_url=url_for('timer.logs', function_id=function_id), history_url=url_for('timer.history', function_id=function_id)) }} -
+
{{ render_partial('dashboard/analytics.html', invocations=timer_function_invocations) }}
@@ -34,6 +34,8 @@ history_url=url_for('timer.history', function_id=function_id)) }} {{ invocation.invocation_time.strftime('%Y-%m-%d %H:%M:%S') }} + {{ "%.2f"|format(invocation.execution_time or + 0) }}ms v{{ invocation.version_number }}