# Path: stackimpact/runtime.py
# def min_version(major, minor=0):
#     return (sys.version_info.major == major and sys.version_info.minor >= minor)
# 
# 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 os
import time
import unittest
import random
import threading
import stackimpact
    from urllib2 import urlopen
    from urllib.request import urlopen
from stackimpact.runtime import min_version, runtime_info
from test_server import TestServer


        result = {}
        def record():
            agent.block_reporter.profiler.start_profiler()
            time.sleep(2)
            agent.block_reporter.profiler.stop_profiler()

        record_t = threading.Thread(target=record)
        record_t.start()

        # simulate lock
        t = threading.Thread(target=lock_lock)
        t.start()

        t = threading.Thread(target=lock_wait)
        t.start()

        # simulate event
        t = threading.Thread(target=event_lock)
        t.start()

        t = threading.Thread(target=event_wait)
        t.start()

        # simulate network
        t = threading.Thread(target=url_wait)
        t.start()

        # make sure signals are delivered in python 2, when main thread is waiting

# Path: stackimpact/runtime.py
# def min_version(major, minor=0):
#     return (sys.version_info.major == major and sys.version_info.minor >= minor)
# 
# 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: tests/profilers/block_profiler_test.py
import os
import time
import unittest
import random
import threading
import stackimpact
    from urllib2 import urlopen
    from urllib.request import urlopen
from stackimpact.runtime import min_version, runtime_info
from test_server import TestServer



        result = {}
        def record():
            agent.block_reporter.profiler.start_profiler()
            time.sleep(2)
            agent.block_reporter.profiler.stop_profiler()

        record_t = threading.Thread(target=record)
        record_t.start()

        # simulate lock
        t = threading.Thread(target=lock_lock)
        t.start()

        t = threading.Thread(target=lock_wait)
        t.start()

        # simulate event
        t = threading.Thread(target=event_lock)
        t.start()

        t = threading.Thread(target=event_wait)
        t.start()

        # simulate network
        t = threading.Thread(target=url_wait)
        t.start()

        # make sure signals are delivered in python 2, when main thread is waiting

        if runtime_info.PYTHON_2: