Only collect timeline profiles when the profiler is active.