Lines Matching refs:loop_metrics
965 uv__loop_metrics_t* loop_metrics; in uv__metrics_update_idle_time() local
972 loop_metrics = uv__get_loop_metrics(loop); in uv__metrics_update_idle_time()
978 if (loop_metrics->provider_entry_time == 0) in uv__metrics_update_idle_time()
983 uv_mutex_lock(&loop_metrics->lock); in uv__metrics_update_idle_time()
984 entry_time = loop_metrics->provider_entry_time; in uv__metrics_update_idle_time()
985 loop_metrics->provider_entry_time = 0; in uv__metrics_update_idle_time()
986 loop_metrics->provider_idle_time += exit_time - entry_time; in uv__metrics_update_idle_time()
987 uv_mutex_unlock(&loop_metrics->lock); in uv__metrics_update_idle_time()
992 uv__loop_metrics_t* loop_metrics; in uv__metrics_set_provider_entry_time() local
999 loop_metrics = uv__get_loop_metrics(loop); in uv__metrics_set_provider_entry_time()
1000 uv_mutex_lock(&loop_metrics->lock); in uv__metrics_set_provider_entry_time()
1001 loop_metrics->provider_entry_time = now; in uv__metrics_set_provider_entry_time()
1002 uv_mutex_unlock(&loop_metrics->lock); in uv__metrics_set_provider_entry_time()
1016 uv__loop_metrics_t* loop_metrics; in uv_metrics_idle_time() local
1020 loop_metrics = uv__get_loop_metrics(loop); in uv_metrics_idle_time()
1021 uv_mutex_lock(&loop_metrics->lock); in uv_metrics_idle_time()
1022 idle_time = loop_metrics->provider_idle_time; in uv_metrics_idle_time()
1023 entry_time = loop_metrics->provider_entry_time; in uv_metrics_idle_time()
1024 uv_mutex_unlock(&loop_metrics->lock); in uv_metrics_idle_time()