Skip to content

Commit

Permalink
Add per-operation timing to segment_current_trips using ect.Timer
Browse files Browse the repository at this point in the history
- Wrapped each significant operation within the `segment_current_trips` function with `ect.Timer` context managers.
- Named each timer using the pattern `ecwp.PipelineStages.TRIP_SEGMENTATION.name + "/operation"` for consistent identification.
- After each timed block, recorded the elapsed time by calling `esds.store_pipeline_time` with the appropriate parameters.
- Ensured that only timing-related code was added without altering existing logic, error handling, or formatting.

This enhancement enables granular performance monitoring of the trip segmentation process, allowing for better identification of potential bottlenecks and optimization opportunities.

Added more in depth timings for create_places_and_trips and segment_current_trips

s
  • Loading branch information
TeachMeTW committed Nov 4, 2024
1 parent b15fcb9 commit 6d798c6
Showing 1 changed file with 262 additions and 88 deletions.
Loading

0 comments on commit 6d798c6

Please sign in to comment.