Lines Matching refs:procs
65 struct fpm_scoreboard_proc_s procs[scoreboard.nprocs]; in fpm_status_export_to_zval() local
71 procs[i].used=-1; in fpm_status_export_to_zval()
74 procs[i] = *proc_p; in fpm_status_export_to_zval()
102 if (!procs[i].used) { in fpm_status_export_to_zval()
105 proc_p = &procs[i]; in fpm_status_export_to_zval()
108 if (procs[i].cpu_duration.tv_sec == 0 && procs[i].cpu_duration.tv_usec == 0) { in fpm_status_export_to_zval()
111 …procs[i].last_request_cpu.tms_utime + procs[i].last_request_cpu.tms_stime + procs[i].last_request_… in fpm_status_export_to_zval()
116 add_assoc_long(&fpm_proc_stat, "pid", procs[i].pid); in fpm_status_export_to_zval()
117 add_assoc_string(&fpm_proc_stat, "state", fpm_request_get_stage_name(procs[i].request_stage)); in fpm_status_export_to_zval()
118 add_assoc_long(&fpm_proc_stat, "start-time", procs[i].start_epoch); in fpm_status_export_to_zval()
119 add_assoc_long(&fpm_proc_stat, "start-since", now_epoch - procs[i].start_epoch); in fpm_status_export_to_zval()
120 add_assoc_long(&fpm_proc_stat, "requests", procs[i].requests); in fpm_status_export_to_zval()
121 if (procs[i].request_stage == FPM_REQUEST_ACCEPTING) { in fpm_status_export_to_zval()
122 duration = procs[i].duration; in fpm_status_export_to_zval()
124 timersub(&now, &procs[i].accepted, &duration); in fpm_status_export_to_zval()
127 …add_assoc_string(&fpm_proc_stat, "request-method", procs[i].request_method[0] != '\0' ? procs[i].r… in fpm_status_export_to_zval()
128 add_assoc_string(&fpm_proc_stat, "request-uri", procs[i].request_uri); in fpm_status_export_to_zval()
129 add_assoc_string(&fpm_proc_stat, "query-string", procs[i].query_string); in fpm_status_export_to_zval()
130 add_assoc_long(&fpm_proc_stat, "request-length", procs[i].content_length); in fpm_status_export_to_zval()
131 …add_assoc_string(&fpm_proc_stat, "user", procs[i].auth_user[0] != '\0' ? procs[i].auth_user : "-"); in fpm_status_export_to_zval()
132 …add_assoc_string(&fpm_proc_stat, "script", procs[i].script_filename[0] != '\0' ? procs[i].script_f… in fpm_status_export_to_zval()
134 …add_assoc_double(&fpm_proc_stat, "last-request-cpu", procs[i].request_stage == FPM_REQUEST_ACCEPTI… in fpm_status_export_to_zval()
136 …ssoc_long(&fpm_proc_stat, "last-request-memory", procs[i].request_stage == FPM_REQUEST_ACCEPTING ?… in fpm_status_export_to_zval()
501 if (!scoreboard_p->procs[i].used) { in fpm_status_handle_request()
504 proc = scoreboard_p->procs[i]; in fpm_status_handle_request()