From ce26dd729e6842c9ec8cc83bf091167e4c50a1ec Mon Sep 17 00:00:00 2001 From: Valentin Bartenev Date: Mon, 29 Aug 2022 14:27:09 +0800 Subject: Implemented basic statistics API. --- src/nxt_event_engine.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/nxt_event_engine.h') diff --git a/src/nxt_event_engine.h b/src/nxt_event_engine.h index 91cfc0aa..4153742d 100644 --- a/src/nxt_event_engine.h +++ b/src/nxt_event_engine.h @@ -483,6 +483,10 @@ struct nxt_event_engine_s { nxt_queue_t idle_connections; nxt_array_t *mem_cache; + nxt_atomic_uint_t accepted_conns_cnt; + nxt_atomic_uint_t idle_conns_cnt; + nxt_atomic_uint_t closed_conns_cnt; + nxt_queue_link_t link; // STUB: router link nxt_queue_link_t link0; -- cgit From 3ea113fcb7261a0be3b9dc8d32c402da1bcfadaa Mon Sep 17 00:00:00 2001 From: Zhidao HONG Date: Mon, 29 Aug 2022 14:32:20 +0800 Subject: Status: added requests count. --- src/nxt_event_engine.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/nxt_event_engine.h') diff --git a/src/nxt_event_engine.h b/src/nxt_event_engine.h index 4153742d..291ea749 100644 --- a/src/nxt_event_engine.h +++ b/src/nxt_event_engine.h @@ -486,6 +486,7 @@ struct nxt_event_engine_s { nxt_atomic_uint_t accepted_conns_cnt; nxt_atomic_uint_t idle_conns_cnt; nxt_atomic_uint_t closed_conns_cnt; + nxt_atomic_uint_t requests_cnt; nxt_queue_link_t link; // STUB: router link -- cgit