diff options
author | Erik Johnston <erik@matrix.org> | 2015-01-06 15:22:28 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-01-06 15:22:28 +0000 |
commit | 03a501456ca8815a7d6fd8ea84d9c2a1feba33cf (patch) | |
tree | 5c3bd445b148a9d5e4da9f27889a754656279890 /synapse/storage/transactions.py | |
parent | Don't include None's in _get_events_txn (diff) | |
download | synapse-03a501456ca8815a7d6fd8ea84d9c2a1feba33cf.tar.xz |
Time how long calls to _get_destination_retry_timings take
Diffstat (limited to 'synapse/storage/transactions.py')
-rw-r--r-- | synapse/storage/transactions.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/storage/transactions.py b/synapse/storage/transactions.py index e06ef35690..36ddf30d65 100644 --- a/synapse/storage/transactions.py +++ b/synapse/storage/transactions.py @@ -19,6 +19,8 @@ from collections import namedtuple from twisted.internet import defer +from synapse.util.logutils import time_function + import logging logger = logging.getLogger(__name__) @@ -228,6 +230,7 @@ class TransactionStore(SQLBaseStore): "get_destination_retry_timings", self._get_destination_retry_timings, destination) + @time_function def _get_destination_retry_timings(cls, txn, destination): query = DestinationsTable.select_statement("destination = ?") txn.execute(query, (destination,)) |