Esempio n. 1
0
def instrument():
    """
    Instruments all registered methods/functions with a wrapper
    """
    with _lock:
        for obj in register.get_instrumentation_objects():
            obj.instrument()
Esempio n. 2
0
def uninstrument():
    """
    If present, removes instrumentation and replaces it with the original method/function
    """
    with _lock:
        for obj in register.get_instrumentation_objects():
            obj.uninstrument()
Esempio n. 3
0
def instrument():
    for obj in register.get_instrumentation_objects():
        obj.instrument()