diff options
author | Antoine Pitrou <pitrou@free.fr> | 2017-11-07 17:50:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-07 17:50:48 +0100 |
commit | d8d218ffda6b7569625ff9edadbbc9a2b1055e32 (patch) | |
tree | 1c0346361bddaaf5febd26429f0464ee94b1a237 /Lib/asyncio/constants.py | |
parent | 518c6b97868d9c665475a40567b0aa417afad607 (diff) | |
download | cpython-git-d8d218ffda6b7569625ff9edadbbc9a2b1055e32.tar.gz |
[3.6] bpo-31970: Reduce performance overhead of asyncio debug mode. (GH-4314) (#4322)
* bpo-31970: Reduce performance overhead of asyncio debug mode..
(cherry picked from commit 921e9432a1461bbf312c9c6dcc2b916be6c05fa0)
Diffstat (limited to 'Lib/asyncio/constants.py')
-rw-r--r-- | Lib/asyncio/constants.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/asyncio/constants.py b/Lib/asyncio/constants.py index f9e123281e..e74209e149 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 |