Skip to content

Commit

Permalink
timing
Browse files Browse the repository at this point in the history
  • Loading branch information
sigurdp committed Nov 22, 2024
1 parent 95f3383 commit 9fbebf3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend_py/primary/primary/routers/surface/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@ def compute_hash(numbers: List[int]) -> str:

if cached_data:
LOGGER.info(f"!!!!!!!!!!!!!!!!!!!!Returning CACHED result in: {perf_metrics.to_string()}")
response_perf_metrics.record_lap("func-total-cached")
return ta.validate_json(cached_data)

sumo_access_token = authenticated_user.get_sumo_access_token()
Expand Down Expand Up @@ -391,7 +392,7 @@ def compute_hash(numbers: List[int]) -> str:

LOGGER.info(f"Sampled surface in points in: {perf_metrics.to_string()}")

response_perf_metrics.record_lap("func-total")
response_perf_metrics.record_lap("func-total-uncached")

return intersections

Expand Down

0 comments on commit 9fbebf3

Please sign in to comment.