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 59c5ec8 commit 95f3383
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions backend_py/primary/primary/routers/surface/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ async def post_get_surface_intersection(
#@cache(expire=600)
async def post_sample_surface_in_points(
request: Request,
response: Response,
case_uuid: str = Query(description="Sumo case uuid"),
ensemble_name: str = Query(description="Ensemble name"),
surface_name: str = Query(description="Surface name"),
Expand All @@ -331,6 +332,8 @@ async def post_sample_surface_in_points(
) -> List[schemas.SurfaceRealizationSampleValues]:

perf_metrics = PerfMetrics()
response_perf_metrics = ResponsePerfMetrics(response)


ta = TypeAdapter(list[schemas.SurfaceRealizationSampleValues])

Expand Down Expand Up @@ -388,6 +391,8 @@ 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")

return intersections


Expand Down

0 comments on commit 95f3383

Please sign in to comment.