diff options
author | Erik Johnston <erikj@jki.re> | 2017-02-02 18:55:57 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-02 18:55:57 +0000 |
commit | a5d9303283b4bd4dfe4b994e40133def43fd556f (patch) | |
tree | f6a3af152407b94fbce89397e0a246548945d972 /synapse/handlers/sync.py | |
parent | Merge pull request #1877 from matrix-org/erikj/device_list_fixes (diff) | |
parent | Measure new device list stuff (diff) | |
download | synapse-a5d9303283b4bd4dfe4b994e40133def43fd556f.tar.xz |
Merge pull request #1878 from matrix-org/erikj/device_measure
Measure new device list stuff
Diffstat (limited to 'synapse/handlers/sync.py')
-rw-r--r-- | synapse/handlers/sync.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/handlers/sync.py b/synapse/handlers/sync.py index 9a44de3f33..d7dcd1ce5b 100644 --- a/synapse/handlers/sync.py +++ b/synapse/handlers/sync.py @@ -16,7 +16,7 @@ from synapse.api.constants import Membership, EventTypes from synapse.util.async import concurrently_execute from synapse.util.logcontext import LoggingContext -from synapse.util.metrics import Measure +from synapse.util.metrics import Measure, measure_func from synapse.util.caches.response_cache import ResponseCache from synapse.push.clientformat import format_push_rules_for_user from synapse.visibility import filter_events_for_client @@ -561,6 +561,7 @@ class SyncHandler(object): next_batch=sync_result_builder.now_token, )) + @measure_func("_generate_sync_entry_for_device_list") @defer.inlineCallbacks def _generate_sync_entry_for_device_list(self, sync_result_builder): user_id = sync_result_builder.sync_config.user.to_string() |