Support for task tracing