synapse-product/synapse/rest/media/v1
Richard van der Hoff 5c445114d3
Correctly account for cpu usage by background threads (#4074)
Wrap calls to deferToThread() in a thing which uses a child logcontext to
attribute CPU usage to the right request.

While we're in the area, remove the logcontext_tracer stuff, which is never
used, and afaik doesn't work.

Fixes #4064
2018-10-23 13:12:32 +01:00
..
__init__.py copyrights 2016-01-07 04:26:29 +00:00
_base.py Port rest/ to Python 3 (#3823) 2018-09-12 20:41:31 +10:00
config_resource.py Add GET media/v1/config (#3184) 2018-08-16 14:23:38 +01:00
download_resource.py added "media-src: 'self'" to CSP for resources (#3578) 2018-09-25 11:55:02 +01:00
filepath.py run isort 2018-07-09 16:09:20 +10:00
identicon_resource.py check isort by travis 2018-07-16 13:57:33 +02:00
media_repository.py Correctly account for cpu usage by background threads (#4074) 2018-10-23 13:12:32 +01:00
media_storage.py Correctly account for cpu usage by background threads (#4074) 2018-10-23 13:12:32 +01:00
preview_url_resource.py Fix bug where we raised StopIteration in a generator 2018-10-17 16:10:52 +01:00
storage_provider.py Correctly account for cpu usage by background threads (#4074) 2018-10-23 13:12:32 +01:00
thumbnail_resource.py run isort 2018-07-09 16:09:20 +10:00
thumbnailer.py run isort 2018-07-09 16:09:20 +10:00
upload_resource.py Port over enough to get some sytests running on Python 3 (#3668) 2018-08-20 23:54:49 +10:00