moebius#157: The Performance Observer (improvements)

https://github.com/MoonchildProductions/moebius/pull/157
This commit is contained in:
janekptacijarabaci 2018-04-22 04:25:34 +02:00 committed by Roy Tam
commit 6a97ee9379
13 changed files with 107 additions and 150 deletions

View file

@ -38,27 +38,6 @@ using namespace workers;
namespace {
// Helper classes
class MOZ_STACK_CLASS PerformanceEntryComparator final
{
public:
bool Equals(const PerformanceEntry* aElem1,
const PerformanceEntry* aElem2) const
{
MOZ_ASSERT(aElem1 && aElem2,
"Trying to compare null performance entries");
return aElem1->StartTime() == aElem2->StartTime();
}
bool LessThan(const PerformanceEntry* aElem1,
const PerformanceEntry* aElem2) const
{
MOZ_ASSERT(aElem1 && aElem2,
"Trying to compare null performance entries");
return aElem1->StartTime() < aElem2->StartTime();
}
};
class PrefEnabledRunnable final
: public WorkerCheckAPIExposureOnMainThreadRunnable
{