Updating profiler logging output to better support n-depth profiler nesting.
Favoring immutability for Profiler