cmMakefileProfilingData: Refactor to use RAII

And add a more generic StartEntry() method.
4 files changed