summaryrefslogtreecommitdiffstats
path: root/js/src/vm/Stopwatch.cpp
diff options
context:
space:
mode:
authorMoonchild <mcwerewolf@wolfbeast.com>2019-01-31 14:49:35 +0100
committerGitHub <noreply@github.com>2019-01-31 14:49:35 +0100
commitfecab2c542df1e1aed5c9cb9ef45d113533c1dee (patch)
treedb024cf75b8c7196c918bba2c100021556604c5f /js/src/vm/Stopwatch.cpp
parentaa28523a553f5e2553c781081eb21715aedb7eaf (diff)
parent493c956d8de0fdb763851d9c12cfd248776b80b8 (diff)
downloadUXP-fecab2c542df1e1aed5c9cb9ef45d113533c1dee.tar
UXP-fecab2c542df1e1aed5c9cb9ef45d113533c1dee.tar.gz
UXP-fecab2c542df1e1aed5c9cb9ef45d113533c1dee.tar.lz
UXP-fecab2c542df1e1aed5c9cb9ef45d113533c1dee.tar.xz
UXP-fecab2c542df1e1aed5c9cb9ef45d113533c1dee.zip
Merge pull request #952 from adeshkp/remove-telemetry-js
Remove telemetry leftovers from JS engine.
Diffstat (limited to 'js/src/vm/Stopwatch.cpp')
-rw-r--r--js/src/vm/Stopwatch.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/js/src/vm/Stopwatch.cpp b/js/src/vm/Stopwatch.cpp
index 5b5ec6196..684846f00 100644
--- a/js/src/vm/Stopwatch.cpp
+++ b/js/src/vm/Stopwatch.cpp
@@ -334,11 +334,6 @@ AutoStopwatch::exit()
const uint64_t cyclesEnd = getCycles(runtime);
cyclesDelta = cyclesEnd - cyclesStart_; // Always >= 0 by definition of `getCycles`.
}
-#if WINVER >= 0x600
- updateTelemetry(cpuStart_, cpuEnd);
-#elif defined(__linux__)
- updateTelemetry(cpuStart_, cpuEnd);
-#endif // WINVER >= 0x600 || _linux__
}
uint64_t CPOWTimeDelta = 0;
@@ -350,17 +345,6 @@ AutoStopwatch::exit()
return addToGroups(cyclesDelta, CPOWTimeDelta);
}
-void
-AutoStopwatch::updateTelemetry(const cpuid_t& cpuStart_, const cpuid_t& cpuEnd)
-{
- JSRuntime* runtime = cx_->runtime();
-
- if (isSameCPU(cpuStart_, cpuEnd))
- runtime->performanceMonitoring.testCpuRescheduling.stayed += 1;
- else
- runtime->performanceMonitoring.testCpuRescheduling.moved += 1;
-}
-
PerformanceGroup*
AutoStopwatch::acquireGroup(PerformanceGroup* group)
{