print runtime stats to the environment variable EMPER_STATS_FILE
- Make all stats print methods accept a
std::ostreamas output. - Move the printing of runtime component stats into
Runtime::printStats. - Use
Runtime::printStatsinstead ofRuntime::printLastRuntimeStatsin~Runtime, because we are already in a runtime which may differ fromRuntime::currentRuntime. - Write the stats in
~Runtimeto a possible file passed in the environment variableEMPER_STATS_FILE