From 5de97d74385014c4bb228796d39563ffbb365716 Mon Sep 17 00:00:00 2001 From: Trygve Aspenes Date: Thu, 10 Oct 2024 14:22:01 +0200 Subject: [PATCH] more timing debug logs --- mapgen/main.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mapgen/main.py b/mapgen/main.py index ce8ff05..9f912e3 100644 --- a/mapgen/main.py +++ b/mapgen/main.py @@ -57,8 +57,14 @@ def start_processing(netcdf_path, query_string, netloc, scheme, q): try: + start = time.time() response_code, response, content_type = get_quicklook(netcdf_path, query_string, netloc, scheme, products=None) + end = time.time() + logging.debug(f"qet_quicklook completed in: {end - start:f}seconds") + start = end q.put((response_code, response, content_type)) + end = time.time() + logging.debug(f"Put results in queue in: {end - start:f}seconds") except KeyboardInterrupt: pass