Created
July 30, 2015 12:31
-
-
Save ruxkor/e9ec27e3adcf3a00ff9e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import gc | |
from greenlet import greenlet | |
import traceback | |
def dumpGreenlets(): | |
for ob in gc.get_objects(): | |
if not isinstance(ob, greenlet): | |
continue | |
if not ob: | |
continue | |
print(''.join(traceback.format_stack(ob.gr_frame))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment