Minor improvements to profiling
First patch has two minor improvements:
- Make it possible to switch on profiling via
site/vXXX+/controlDict
(I like to always have profiling) - For multi-region cases add the region-name to the name of the profiling-information
The second patch adds profiling to the time loop by deleting/creating a new profiling::Trigger-object at every call to run(). That way in the profiling information it can now be seen how much time was spent inside and outside the time-loop (usually should be in the order of 99% to 1). The ProfilingTrigger-class was necessary as apparently C++ does not allow the forward-declaration of interior classes like profiling::Trigger
profilingProfileTimeLoop.patch
I split this into two patches because obviously fiddling with the Time-class is always controverial