summaryrefslogtreecommitdiff
path: root/src/greenlet/__init__.py
diff options
context:
space:
mode:
authorJason Madden <jamadden@gmail.com>2021-11-16 15:37:18 -0600
committerJason Madden <jamadden@gmail.com>2021-11-16 15:37:18 -0600
commit34724e1c1880d02a69850160fef1abaa4305ccca (patch)
tree066ffdb7e9b395e565bb784b65cfaad3a5ba32a2 /src/greenlet/__init__.py
parent1353150ac0f288099ab3b11f70cfae2dbd1d6f31 (diff)
downloadgreenlet-issue264.tar.gz
Add a way to get how long it takes to cleanup using gc, and a way to disable it.issue264
Fixes #262.
Diffstat (limited to 'src/greenlet/__init__.py')
-rw-r--r--src/greenlet/__init__.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/greenlet/__init__.py b/src/greenlet/__init__.py
index 9f2bcb2..2f671f2 100644
--- a/src/greenlet/__init__.py
+++ b/src/greenlet/__init__.py
@@ -61,3 +61,8 @@ except ImportError:
from ._greenlet import GREENLET_USE_CONTEXT_VARS # pylint:disable=unused-import
from ._greenlet import GREENLET_USE_GC # pylint:disable=unused-import
from ._greenlet import GREENLET_USE_TRACING # pylint:disable=unused-import
+
+# Controlling the use of the gc module.
+from ._greenlet import CLOCKS_PER_SEC # pylint:disable=unused-import
+from ._greenlet import enable_optional_cleanup # pylint:disable=unused-import
+from ._greenlet import get_clocks_used_doing_optional_cleanup # pylint:disable=unused-import