summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2018-07-24 00:04:44 +0100
committerRichard van der Hoff <richard@matrix.org>2018-07-24 00:04:44 +0100
commit69fb5dbdabf50dffe34e2a0d012b5a227fc16c55 (patch)
tree490993cc3c5741dbec85700456e09817ac1f0280 /synapse/storage
parentAdd some measure blocks to persist_events (diff)
downloadsynapse-69fb5dbdabf50dffe34e2a0d012b5a227fc16c55.tar.xz
fix idiocy
Diffstat (limited to 'synapse/storage')
-rw-r--r--synapse/storage/events.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/synapse/storage/events.py b/synapse/storage/events.py
index d13d099d1e..392935cacf 100644
--- a/synapse/storage/events.py
+++ b/synapse/storage/events.py
@@ -418,7 +418,10 @@ class EventsStore(EventsWorkerStore):
                                 "Calculating state delta for room %s", room_id,
                             )
 
-                            with Measure("persist_events.get_new_state_after_events"):
+                            with Measure(
+                                    self._clock,
+                                    "persist_events.get_new_state_after_events",
+                            ):
                                 current_state = yield self._get_new_state_after_events(
                                     room_id,
                                     ev_ctx_rm,
@@ -428,7 +431,10 @@ class EventsStore(EventsWorkerStore):
 
                             if current_state is not None:
                                 current_state_for_room[room_id] = current_state
-                                with Measure("persist_events.calculate_state_delta"):
+                                with Measure(
+                                        self._clock,
+                                        "persist_events.calculate_state_delta",
+                                ):
                                     delta = yield self._calculate_state_delta(
                                         room_id, current_state,
                                     )