summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/constants.py
diff options
context:
space:
mode:
authorAntoine Pitrou <pitrou@free.fr>2017-11-07 16:23:29 (GMT)
committerGitHub <noreply@github.com>2017-11-07 16:23:29 (GMT)
commit921e9432a1461bbf312c9c6dcc2b916be6c05fa0 (patch)
treefe7133dd95ad4d039de908df4af3bc71ef1f0bc8 /Lib/asyncio/constants.py
parent1e5d54cfa031f1de9ee2d2e968e0551b6e2397b7 (diff)
downloadcpython-921e9432a1461bbf312c9c6dcc2b916be6c05fa0.zip
cpython-921e9432a1461bbf312c9c6dcc2b916be6c05fa0.tar.gz
cpython-921e9432a1461bbf312c9c6dcc2b916be6c05fa0.tar.bz2
bpo-31970: Reduce performance overhead of asyncio debug mode. (#4314)
* bpo-31970: Reduce performance overhead of asyncio debug mode.
Diffstat (limited to 'Lib/asyncio/constants.py')
-rw-r--r--Lib/asyncio/constants.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/asyncio/constants.py b/Lib/asyncio/constants.py
index f9e1232..e74209e 100644
--- a/Lib/asyncio/constants.py
+++ b/Lib/asyncio/constants.py
@@ -5,3 +5,8 @@ LOG_THRESHOLD_FOR_CONNLOST_WRITES = 5
# Seconds to wait before retrying accept().
ACCEPT_RETRY_DELAY = 1
+
+# Number of stack entries to capture in debug mode.
+# The large the number, the slower the operation in debug mode
+# (see extract_stack() in events.py)
+DEBUG_STACK_DEPTH = 10