コード例 #1
0
def instrument_django_core_handlers_base(module):

    # Attach a post function to load_middleware() method of
    # BaseHandler to trigger insertion of browser timing
    # middleware and wrapping of middleware for timing etc.

    wrap_post_function(module, 'BaseHandler.load_middleware',
                       insert_and_wrap_middleware)
コード例 #2
0
def instrument_django_core_handlers_base(module):

    # Attach a post function to load_middleware() method of
    # BaseHandler to trigger insertion of browser timing
    # middleware and wrapping of middleware for timing etc.

    wrap_post_function(module, 'BaseHandler.load_middleware',
            insert_and_wrap_middleware)
コード例 #3
0
def instrument_gevent_monkey(module):
    wrap_post_function(module, 'patch_thread', _patch_thread)
コード例 #4
0
def instrument_gevent_monkey(module):
    wrap_post_function(module, 'patch_thread', _patch_thread)