Skip to content

Commit 8644184

Browse files
HenroKrielInteligcbot
authored andcommitted
Changes in code.
1 parent b284e09 commit 8644184

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

IGC/common/Stats.cpp

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -634,23 +634,32 @@ void TimeStats::printSumTimeCSV(std::string const& outputFile) const
634634
fprintf(fileName, "seconds,," );
635635
for (int i=0;i<MAX_COMPILE_TIME_INTERVALS;i++)
636636
{
637-
fprintf(fileName, "%f,", (double)getCompileTime(static_cast<COMPILE_TIME_INTERVALS>(i))/(double)m_freq);
637+
if (!skipTimer(i))
638+
{
639+
fprintf(fileName, "%f,", (double)getCompileTime(static_cast<COMPILE_TIME_INTERVALS>(i)) / (double)m_freq);
640+
}
638641
}
639642
fprintf(fileName, "\n");
640643

641644
// print percentage
642645
fprintf(fileName, "percentage,," );
643646
for (int i=0;i<MAX_COMPILE_TIME_INTERVALS;i++)
644647
{
645-
fprintf(fileName, "%f,", (double)getCompileTime(static_cast<COMPILE_TIME_INTERVALS>(i))/(double)getCompileTime(TIME_TOTAL) * 100. );
648+
if (!skipTimer(i))
649+
{
650+
fprintf(fileName, "%f,", (double)getCompileTime(static_cast<COMPILE_TIME_INTERVALS>(i)) / (double)getCompileTime(TIME_TOTAL) * 100.0);
651+
}
646652
}
647653
fprintf(fileName, "\n");
648654

649655
// print hit count
650656
fprintf(fileName, "hit,," );
651657
for (int i=0;i<MAX_COMPILE_TIME_INTERVALS;i++)
652658
{
653-
fprintf(fileName, "%ju,", m_hitCount[i] );
659+
if (!skipTimer(i))
660+
{
661+
fprintf(fileName, "%ju,", m_hitCount[i]);
662+
}
654663
}
655664
fprintf(fileName, "\n");
656665
}

0 commit comments

Comments
 (0)