Add a docstring to end_tracing()