Only collect timeline profiles when the profiler is active.
Merge pull request #1418 from mbebenita/nat

Only collect timeline profiles when the profiler is active.