Add detailed performance tracing