Beispiel #1
0
def instrument():
    """
    Instruments all registered methods/functions with a wrapper
    """
    with _lock:
        for obj in register.get_instrumentation_objects():
            obj.instrument()
Beispiel #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()
Beispiel #3
0
def instrument():
    for obj in register.get_instrumentation_objects():
        obj.instrument()