Pulled thread state out of profiler class