adding some gc profiling to profile task