Lines Matching refs:fpm_proc_stat
50 zval fpm_proc_stats, fpm_proc_stat; in fpm_status_export_to_zval() local
115 array_init(&fpm_proc_stat); 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()
126 …add_assoc_long(&fpm_proc_stat, "request-duration", duration.tv_sec * 1000000UL + duration.tv_usec); 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 …add_assoc_long(&fpm_proc_stat, "last-request-memory", procs[i].request_stage == FPM_REQUEST_ACCEPT… in fpm_status_export_to_zval()
137 add_next_index_zval(&fpm_proc_stats, &fpm_proc_stat); in fpm_status_export_to_zval()