1#include <Gui/TimerData/FrameTimerData.hpp>
4void FrameTimerData::print(
std::ostream& ostream )
const {
6 long totalTime = Ra::Core::Utils::getIntervalMicro( frameStart, frameEnd );
8 ostream <<
"frame " << numFrame <<
": " << totalTime <<
"\n";
12 long taStart = Ra::Core::Utils::getIntervalMicro( frameStart, tasksStart );
13 long taEnd = Ra::Core::Utils::getIntervalMicro( frameStart, tasksEnd );
15 long reStart = Ra::Core::Utils::getIntervalMicro( frameStart, renderData.renderStart );
16 long reEnd = Ra::Core::Utils::getIntervalMicro( frameStart, renderData.renderEnd );
17 ostream <<
"\ttasks: " << taStart <<
" " << taEnd <<
" " << taEnd - taStart <<
"\n";
20 for (
const auto& tData : taskData ) {
21 long tadaStart = Ra::Core::Utils::getIntervalMicro( frameStart, tData.start );
22 long tadaEnd = Ra::Core::Utils::getIntervalMicro( frameStart, tData.end );
23 ostream <<
"\t\t" << tData.taskName <<
"(" << tData.threadId <<
"): " << tadaStart
24 <<
" " << tadaEnd <<
" " << tadaEnd - tadaStart <<
"\n";
28 ostream <<
"\trender: " << reStart <<
" " << reEnd <<
" " << reEnd - reStart <<
"\n";
hepler function to manage enum as underlying types in VariableSet