forked-synapse/synapse/metrics
Richard van der Hoff 6a78ede569
Improve reactor_tick_time metric (#11724)
The existing implementation of the `python_twisted_reactor_tick_time` metric is pretty useless, because it *only* 
measures the time taken to execute timed calls and callbacks from threads. That neglects everything that 
happens off the back of I/O, which is obviously quite a lot for us.

To improve this, I've hooked into a different place in the reactor - in particular, where it calls `epoll`. That call is 
the only place it should wait for something to happen - the rest of the loop *should* be quick.

I've also removed `python_twisted_reactor_pending_calls`, because I don't believe anyone ever looks at it, and
it's a nuisance to populate.
2022-01-17 12:14:40 +00:00
..
__init__.py Improve reactor_tick_time metric (#11724) 2022-01-17 12:14:40 +00:00
_exposition.py Add type annotations to synapse.metrics (#10847) 2021-11-17 19:07:02 +00:00
_gc.py Simplify GC prometheus metrics (#11723) 2022-01-13 14:35:52 +00:00
_reactor_metrics.py Improve reactor_tick_time metric (#11724) 2022-01-17 12:14:40 +00:00
background_process_metrics.py Add type annotations to synapse.metrics (#10847) 2021-11-17 19:07:02 +00:00
jemalloc.py Add type annotations to synapse.metrics (#10847) 2021-11-17 19:07:02 +00:00