зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1325299 - Disable untested code path in Stopwatch.(h|cpp). r=Yoric
This patch temporarily disables multiprocessor support because tests fail on Win7 VM and we would not like to block other bugs until we investigate the formerly untested code path. MozReview-Commit-ID: B2ajBK4rrrd --HG-- extra : rebase_source : b22e11fc79f3a6a210728cd419d6d329bf9fa23c
This commit is contained in:
Родитель
96cc4073b0
Коммит
f183df9557
|
@ -319,7 +319,8 @@ AutoStopwatch::exit()
|
|||
const uint64_t cyclesEnd = getCycles(runtime);
|
||||
cyclesDelta = cyclesEnd - cyclesStart_; // Always >= 0 by definition of `getCycles`.
|
||||
}
|
||||
#if WINVER >= 0x600
|
||||
// Temporary disable untested code path.
|
||||
#if 0 // WINVER >= 0x600
|
||||
updateTelemetry(cpuStart_, cpuEnd);
|
||||
#elif defined(__linux__)
|
||||
updateTelemetry(cpuStart_, cpuEnd);
|
||||
|
@ -411,7 +412,8 @@ AutoStopwatch::getCycles(JSRuntime* runtime) const
|
|||
cpuid_t inline
|
||||
AutoStopwatch::getCPU() const
|
||||
{
|
||||
#if defined(XP_WIN) && WINVER >= _WIN32_WINNT_VISTA
|
||||
// Temporary disable untested code path.
|
||||
#if 0 // defined(XP_WIN) && WINVER >= _WIN32_WINNT_VISTA
|
||||
PROCESSOR_NUMBER proc;
|
||||
GetCurrentProcessorNumberEx(&proc);
|
||||
|
||||
|
@ -425,7 +427,8 @@ AutoStopwatch::getCPU() const
|
|||
bool inline
|
||||
AutoStopwatch::isSameCPU(const cpuid_t& a, const cpuid_t& b) const
|
||||
{
|
||||
#if defined(XP_WIN) && WINVER >= _WIN32_WINNT_VISTA
|
||||
// Temporary disable untested code path.
|
||||
#if 0 // defined(XP_WIN) && WINVER >= _WIN32_WINNT_VISTA
|
||||
return a.group_ == b.group_ && a.number_ == b.number_;
|
||||
#else
|
||||
return true;
|
||||
|
|
|
@ -299,7 +299,8 @@ struct PerformanceMonitoring {
|
|||
uint64_t highestTimestampCounter_;
|
||||
};
|
||||
|
||||
#if WINVER >= 0x0600
|
||||
// Temporary disable untested code path.
|
||||
#if 0 // WINVER >= 0x0600
|
||||
struct cpuid_t {
|
||||
uint16_t group_;
|
||||
uint8_t number_;
|
||||
|
|
Загрузка…
Ссылка в новой задаче