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