| 630 | } |
| 631 | |
| 632 | AP_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 | |
| 656 | AP_DECLARE(void) ap_set_time_process_request(ap_sb_handle_t* const sbh, |
| 657 | const apr_time_t timebeg,const apr_time_t timeend) |
no outgoing calls
no test coverage detected