Skip to content

Commit 24bef49

Browse files
committed
Include the stats only in DEBUG mode
1 parent ee2097f commit 24bef49

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: src/coreclr/jit/compiler.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -8256,8 +8256,10 @@ void JitTimer::PrintCsvHeader()
82568256
fprintf(s_csvFile, "\"Loops\",");
82578257
fprintf(s_csvFile, "\"Loops Cloned\",");
82588258
#if FEATURE_LOOP_ALIGN
8259+
#ifdef DEBUG
82598260
fprintf(s_csvFile, "\"Alignment Candidates\",");
82608261
fprintf(s_csvFile, "\"Loops Aligned\",");
8262+
#endif // DEBUG
82618263
#endif // FEATURE_LOOP_ALIGN
82628264
for (int i = 0; i < PHASE_NUMBER_OF; i++)
82638265
{
@@ -8333,8 +8335,10 @@ void JitTimer::PrintCsvMethodStats(Compiler* comp)
83338335
fprintf(s_csvFile, "%u,", comp->optLoopCount);
83348336
fprintf(s_csvFile, "%u,", comp->optLoopsCloned);
83358337
#if FEATURE_LOOP_ALIGN
8338+
#ifdef DEBUG
83368339
fprintf(s_csvFile, "%u,", comp->loopAlignCandidates);
83378340
fprintf(s_csvFile, "%u,", comp->loopsAligned);
8341+
#endif // DEBUG
83388342
#endif // FEATURE_LOOP_ALIGN
83398343
unsigned __int64 totCycles = 0;
83408344
for (int i = 0; i < PHASE_NUMBER_OF; i++)

0 commit comments

Comments
 (0)