0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-15 11:43:51 +01:00

Measure StateHandler._resolve_events

This commit is contained in:
Erik Johnston 2016-03-22 14:44:48 +00:00
parent 6cf0ba1466
commit d787e41b20

View file

@ -18,6 +18,7 @@ from twisted.internet import defer
from synapse.util.logutils import log_function from synapse.util.logutils import log_function
from synapse.util.caches.expiringcache import ExpiringCache from synapse.util.caches.expiringcache import ExpiringCache
from synapse.util.metrics import Measure
from synapse.api.constants import EventTypes from synapse.api.constants import EventTypes
from synapse.api.errors import AuthError from synapse.api.errors import AuthError
from synapse.api.auth import AuthEventTypes from synapse.api.auth import AuthEventTypes
@ -263,6 +264,7 @@ class StateHandler(object):
from (type, state_key) to event. prev_states is a list of event_ids. from (type, state_key) to event. prev_states is a list of event_ids.
:rtype: (dict[(str, str), synapse.events.FrozenEvent], list[str]) :rtype: (dict[(str, str), synapse.events.FrozenEvent], list[str])
""" """
with Measure(self.clock, "state._resolve_events"):
state = {} state = {}
for st in state_sets: for st in state_sets:
for e in st: for e in st: