diff options
| author | Jason Madden <jamadden@gmail.com> | 2021-11-16 15:37:18 -0600 |
|---|---|---|
| committer | Jason Madden <jamadden@gmail.com> | 2021-11-16 15:37:18 -0600 |
| commit | 34724e1c1880d02a69850160fef1abaa4305ccca (patch) | |
| tree | 066ffdb7e9b395e565bb784b65cfaad3a5ba32a2 /src/greenlet/__init__.py | |
| parent | 1353150ac0f288099ab3b11f70cfae2dbd1d6f31 (diff) | |
| download | greenlet-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__.py | 5 |
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 |
