summaryrefslogtreecommitdiff
path: root/service/test/reactor/README.md
diff options
context:
space:
mode:
authorThais Siqueira <thais.siqueira@gmail.com>2016-08-22 17:33:21 -0300
committerThais Siqueira <thais.siqueira@gmail.com>2016-08-22 17:33:21 -0300
commit7efd62e8775589efc068a8b9b06585d3cd3b4b2d (patch)
tree183d9a6300dbbf005cc981fe6e4b4e790eff0551 /service/test/reactor/README.md
parent9cdd52be577fff75830c854bd7738ee1649e7083 (diff)
Adds a patch to measure function running in twisted
The README explains how to apply the patch so you can get information about long running methods (longer than 100ms) on the main thread
Diffstat (limited to 'service/test/reactor/README.md')
-rw-r--r--service/test/reactor/README.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/service/test/reactor/README.md b/service/test/reactor/README.md
new file mode 100644
index 00000000..8cbae687
--- /dev/null
+++ b/service/test/reactor/README.md
@@ -0,0 +1,7 @@
+To test the run times of functions in the main reactor thread:
+
+- Apply the patch defer.patch
+```
+patch <venv>/local/lib/python2.7/twisted/internet/defer.py service/test/reactor/defer.patch
+```
+- Run the user agent, preferrably out of debug mode, the timing of all the functions that take more than 100ms will be printed on the log