// hardware instructions (rdtsc), for accessing high-resolution hardware timers is enabled. This is disabled
// in Silverlight (just to avoid thinking about whether the extra code space is worthwhile).
#define FEATURE_JIT_TIMER
+#endif // FEATURE_CORECLR
// This feature in RyuJIT supersedes the FEATURE_JIT_TIMER. In addition to supporting the time log file, this
// feature also supports using COMPlus_JitTimeLogCsv=a.csv, which will dump method-level and phase-level timing
// statistics. Also see comments on FEATURE_JIT_TIMER.
#define FEATURE_JIT_METHOD_PERF
-#endif // FEATURE_CORECLR
#ifndef FEATURE_USE_ASM_GC_WRITE_BARRIERS
CritSecHolder csvLock(s_csvLock);
- if (_waccess(jitTimeLogCsv, 0) == -1)
+ FILE* fp = _wfopen(jitTimeLogCsv, W("r"));
+ if (fp == nullptr)
{
// File doesn't exist, so create it and write the header
fprintf(fp, "\"Total Cycles\",");
fprintf(fp, "\"CPS\"\n");
- fclose(fp);
}
+ fclose(fp);
}
extern ICorJitHost* g_jitHost;
// This is the unique CompTimeSummaryInfo object for this instance of the runtime.
static CompTimeSummaryInfo s_compTimeSummary;
- CompTimeSummaryInfo() : m_total(0), m_maximum(0), m_numMethods(0), m_filtered(0), m_numFilteredMethods(0)
+ CompTimeSummaryInfo() : m_numMethods(0), m_total(0), m_maximum(0), m_numFilteredMethods(0), m_filtered(0)
{
}