Bug 1392868 - Completely remove AutoCollectVsyncTelemetry on late beta. r=froydnj

The class, in practice, was already doing nothing in that case, but with
it being half #ifdef'ed on EARLY_BETA_OR_EARLIER, that led to build
failures for unused code on late beta. Just remove the class completely
on late beta.

--HG--
extra : rebase_source : 801b0b9bb9faf41270f72f616e720d5725e8b25c
This commit is contained in:
Mike Hommey 2017-08-23 11:52:12 +09:00
Родитель ad9fe7889e
Коммит 615061e5be
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -54,6 +54,7 @@ NS_DEFINE_STATIC_IID_ACCESSOR(SchedulerEventTarget, NS_DISPATCHEREVENTTARGET_IID
static Atomic<uint64_t> gEarliestUnprocessedVsync(0);
#ifdef EARLY_BETA_OR_EARLIER
class MOZ_RAII AutoCollectVsyncTelemetry final
{
public:
@ -62,18 +63,14 @@ public:
: mIsBackground(aRunnable->IsBackground())
{
MOZ_GUARD_OBJECT_NOTIFIER_INIT;
#ifdef EARLY_BETA_OR_EARLIER
aRunnable->GetName(mKey);
mStart = TimeStamp::Now();
#endif
}
~AutoCollectVsyncTelemetry()
{
#ifdef EARLY_BETA_OR_EARLIER
if (Telemetry::CanRecordBase()) {
CollectTelemetry();
}
#endif
}
private:
@ -127,6 +124,7 @@ AutoCollectVsyncTelemetry::CollectTelemetry()
Telemetry::Accumulate(Telemetry::CONTENT_JS_KNOWN_TICK_DELAY_MS, duration);
}
#endif
} // namespace
@ -383,7 +381,9 @@ SchedulerGroup::Runnable::Run()
nsresult result;
{
#ifdef EARLY_BETA_OR_EARLIER
AutoCollectVsyncTelemetry telemetry(this);
#endif
result = mRunnable->Run();
}