Bug 918833 - Improved profiler thread register. r=ehsan