Integrate new TickProfiler features with TT, refactor profiling.

Signed-off-by: Ross Allan <rallanpcl@gmail.com>