MCPcopy Create free account
hub / github.com/apache/httpd / ap_time_process_request

Function ap_time_process_request

server/scoreboard.c:632–654  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

630}
631
632AP_DECLARE(void) ap_time_process_request(ap_sb_handle_t *sbh, int status)
633{
634 worker_score *ws;
635
636 if (!sbh)
637 return;
638
639 if (sbh->child_num < 0) {
640 return;
641 }
642
643 ws = &ap_scoreboard_image->servers[sbh->child_num][sbh->thread_num];
644
645 if (status == START_PREQUEST) {
646 ws->start_time = ws->last_used = apr_time_now();
647 }
648 else if (status == STOP_PREQUEST) {
649 ws->stop_time = ws->last_used = apr_time_now();
650 if (ap_extended_status) {
651 ws->duration += ws->stop_time - ws->start_time;
652 }
653 }
654}
655
656AP_DECLARE(void) ap_set_time_process_request(ap_sb_handle_t* const sbh,
657 const apr_time_t timebeg,const apr_time_t timeend)

Callers 4

ap_process_async_requestFunction · 0.85
ap_process_requestFunction · 0.85
process_echo_connectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected