# Path: stackimpact/runtime.py
# class runtime_info(object):
#     OS_LINUX = (sys.platform.startswith('linux'))
#     OS_DARWIN = (sys.platform == 'darwin')
#     OS_WIN = (sys.platform == 'win32')
#     PYTHON_2 = (sys.version_info.major == 2)
#     PYTHON_3 = (sys.version_info.major == 3)
#     GEVENT = False


import threading
import os
import re
import importlib
    import gevent
from .runtime import runtime_info
        self.include_system_frames = self.agent.get_option('include_system_frames')

    def stop(self):
        pass


    def is_agent_frame(self, filename):
        if filename in self.agent_frame_cache:
            return self.agent_frame_cache[filename]

        agent_frame = False

        if not self.include_agent_frames:
            if filename.startswith(self.agent_dir):
                agent_frame = True

        if len(self.agent_frame_cache) < self.MAX_CACHE_SIZE:
            self.agent_frame_cache[filename] = agent_frame

        return agent_frame


    def is_system_frame(self, filename):
        if filename in self.system_frame_cache:
            return self.system_frame_cache[filename]

        system_frame = False

        if not self.include_system_frames:
            if (filename.startswith(self.system_dir) or

# Path: stackimpact/runtime.py
# class runtime_info(object):
#     OS_LINUX = (sys.platform.startswith('linux'))
#     OS_DARWIN = (sys.platform == 'darwin')
#     OS_WIN = (sys.platform == 'win32')
#     PYTHON_2 = (sys.version_info.major == 2)
#     PYTHON_3 = (sys.version_info.major == 3)
#     GEVENT = False


# Path: stackimpact/frame_cache.py
import threading
import os
import re
import importlib
    import gevent
from .runtime import runtime_info

        self.include_system_frames = self.agent.get_option('include_system_frames')

    def stop(self):
        pass


    def is_agent_frame(self, filename):
        if filename in self.agent_frame_cache:
            return self.agent_frame_cache[filename]

        agent_frame = False

        if not self.include_agent_frames:
            if filename.startswith(self.agent_dir):
                agent_frame = True

        if len(self.agent_frame_cache) < self.MAX_CACHE_SIZE:
            self.agent_frame_cache[filename] = agent_frame

        return agent_frame


    def is_system_frame(self, filename):
        if filename in self.system_frame_cache:
            return self.system_frame_cache[filename]

        system_frame = False

        if not self.include_system_frames:
            if (filename.startswith(self.system_dir) or

                    (runtime_info.GEVENT and filename.startswith(self.gevent_dir))):