From 27c79d662bf5831139fa58d464c45076c201b7a6 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Sat, 17 Aug 2024 06:23:23 -0700 Subject: [PATCH] feat: Record processing time of get_ranked_tags_map_uncached on cache miss --- aider/repomap.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/aider/repomap.py b/aider/repomap.py index ae2167cb7..cdbf50593 100644 --- a/aider/repomap.py +++ b/aider/repomap.py @@ -422,9 +422,13 @@ class RepoMap: return self.map_cache[cache_key] # If not in cache, generate the map + import time + start_time = time.time() result = self.get_ranked_tags_map_uncached( chat_fnames, other_fnames, max_map_tokens, mentioned_fnames, mentioned_idents ) + end_time = time.time() + self.map_processing_time = end_time - start_time # Store the result in the cache self.map_cache[cache_key] = result