@staticmethod
    def _get_threadstacks():
        threadstacks = []
        try:
            active_frames = sys._current_frames()
        except __HOLE__:
            pass
        else:
            buf = six.StringIO()
            for stack in six.itervalues(active_frames):
                traceback.print_stack(stack, file=buf)
                threadstacks.append(buf.getvalue())
                buf.seek(0)
                buf.truncate()
        return threadstacks
dataset/ETHPy150Open openstack/oslo.middleware/oslo_middleware/healthcheck/__init__.py/Healthcheck._get_threadstacks