Task profiling, see #34