- remove all ad-hoc classes: Remove APIServingTimingMixin, RequestTimingMetricsMixin, TimeStats. Unify to the new API.
- e.g. many time staus related in
ReqState:finished_time
- e.g. many time staus related in
- remove ad-hoc code in the critical path. e.g.,
# Record response sent time right before we send response.
if not state.response_sent_to_client_ts:
state.response_sent_to_client_ts = time.time()
out["meta_info"][
"response_sent_to_client_ts"
] = state.response_sent_to_client_ts