diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2018-07-10 16:12:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-10 16:12:36 +0100 |
commit | c3c29aa19625324ac9a7a8ebcdd58a9c0b457f74 (patch) | |
tree | 64f20b25f4cb70c1c046f34db4d77d5e51cead0e /synapse/storage/events_worker.py | |
parent | Refactor logcontext resource usage tracking (#3501) (diff) | |
download | synapse-c3c29aa19625324ac9a7a8ebcdd58a9c0b457f74.tar.xz |
Attempt to include db threads in cpu usage stats (#3496)
Let's try to include time spent in the DB threads in the per-request/block cpu usage metrics.
Diffstat (limited to 'synapse/storage/events_worker.py')
-rw-r--r-- | synapse/storage/events_worker.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/storage/events_worker.py b/synapse/storage/events_worker.py index fa2659403d..67433606c6 100644 --- a/synapse/storage/events_worker.py +++ b/synapse/storage/events_worker.py @@ -261,7 +261,8 @@ class EventsWorkerStore(SQLBaseStore): ] rows = self._new_transaction( - conn, "do_fetch", [], [], None, self._fetch_event_rows, event_ids + conn, "do_fetch", [], [], + self._fetch_event_rows, event_ids, ) row_dict = { |