Skip to content

Commit af9d116

Browse files
HenroKrielInteligcbot
authored andcommitted
Add conversion time to printSum in Stats.cpp
Add Vulkan Standalone DXBC to SPIRV conversion time to printSum in Stats.cpp
1 parent be78aec commit af9d116

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

IGC/common/Stats.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -592,43 +592,43 @@ void TimeStats::printSumTimeCSV(std::string const& outputFile) const
592592
bool fileExist = false;
593593

594594
FILE *fp = fopen(outputFile.c_str(), "r");
595-
if( fp )
595+
if (fp)
596596
{
597597
fileExist = true;
598598
fclose(fp);
599599
}
600600

601601
FILE* fileName = fopen(outputFile.c_str(), "a");
602602

603-
if( !fileExist && fileName )
603+
if (!fileExist && fileName)
604604
{
605605
fprintf(fileName, "Frequency,%ju\n\n", m_freq);
606606
fprintf(fileName, "corpus name,shader count,");
607607
for (int i=0;i<MAX_COMPILE_TIME_INTERVALS;i++)
608608
{
609-
if( !skipTimer( i ) )
609+
if (!skipTimer( i ))
610610
{
611611
fprintf(fileName, "%s,", g_cCompTimeIntervals[i] );
612612
}
613613
}
614614
fprintf(fileName, "\n");
615615
}
616616

617-
if( fileName )
617+
if (fileName)
618618
{
619619
fprintf(fileName, "%s,%d,", IGC::Debug::GetShaderCorpusName(), m_totalShaderCount );
620620

621621
// print ticks
622622
for (int i=0;i<MAX_COMPILE_TIME_INTERVALS;i++)
623623
{
624-
if( !skipTimer( i ) )
624+
if (!skipTimer( i ))
625625
{
626626
fprintf(fileName, "%jd,", getCompileTime(static_cast<COMPILE_TIME_INTERVALS>(i)) );
627627
}
628628
}
629629
fprintf(fileName, "\n");
630630

631-
if( !IGC_REGKEY_OR_FLAG_ENABLED(DumpTimeStatsCoarse, TIME_STATS_COARSE))
631+
if (!IGC_REGKEY_OR_FLAG_ENABLED(DumpTimeStatsCoarse, TIME_STATS_COARSE))
632632
{
633633
// print secs
634634
fprintf(fileName, "seconds,," );

0 commit comments

Comments
 (0)