Add profiling logging for cleanup tasks