profiler: Add more profiling parameters.
More profiling info.
Always inline some functions.
Use test-and-test-and-set (TATS) for futex-based lock.