We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52b9252 commit c58e8afCopy full SHA for c58e8af
tests/__init__.py
@@ -1,5 +1,6 @@
1
import logging
2
import os
3
+import tracemalloc
4
5
6
format = "%(asctime)s %(levelname)s %(name)s %(message)s"
@@ -12,3 +13,7 @@
12
13
level = logging.CRITICAL
14
15
logging.basicConfig(format=format, level=level)
16
+
17
+if bool(os.environ.get("WEBSOCKETS_TRACE")): # pragma: no cover
18
+ # Trace allocations to debug resource warnings.
19
+ tracemalloc.start()
0 commit comments