зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1722261 - GetRunningEventDelay through ThreadRegistration - r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D121962
This commit is contained in:
Родитель
664a64ed66
Коммит
838c078dd5
|
@ -45,13 +45,6 @@ size_t RegisteredThread::SizeOfIncludingThis(
|
|||
return n;
|
||||
}
|
||||
|
||||
void RegisteredThread::GetRunningEventDelay(const mozilla::TimeStamp& aNow,
|
||||
mozilla::TimeDuration& aDelay,
|
||||
mozilla::TimeDuration& aRunning) {
|
||||
mRacyRegisteredThread.mThreadRegistration.mData.GetRunningEventDelay(
|
||||
aNow, aDelay, aRunning);
|
||||
}
|
||||
|
||||
void RegisteredThread::SetJSContext(JSContext* aContext) {
|
||||
mRacyRegisteredThread.mThreadRegistration.mData.SetJSContext(aContext);
|
||||
}
|
||||
|
|
|
@ -68,17 +68,6 @@ class RegisteredThread final {
|
|||
|
||||
PlatformData* GetPlatformData() const { return mPlatformData.get(); }
|
||||
|
||||
// aDelay is the time the event that is currently running on the thread
|
||||
// was queued before starting to run (if a PrioritizedEventQueue
|
||||
// (i.e. MainThread), this will be 0 for any event at a lower priority
|
||||
// than Input).
|
||||
// aRunning is the time the event has been running. If no event is
|
||||
// running these will both be TimeDuration() (i.e. 0). Both are out
|
||||
// params, and are always set. Their initial value is discarded.
|
||||
void GetRunningEventDelay(const mozilla::TimeStamp& aNow,
|
||||
mozilla::TimeDuration& aDelay,
|
||||
mozilla::TimeDuration& aRunning);
|
||||
|
||||
size_t SizeOfIncludingThis(mozilla::MallocSizeOf aMallocSizeOf) const;
|
||||
|
||||
// Set the JSContext of the thread to be sampled. Sampling cannot begin until
|
||||
|
|
|
@ -3892,7 +3892,7 @@ void SamplerThread::Run() {
|
|||
|
||||
TimeDuration currentEventDelay;
|
||||
TimeDuration currentEventRunning;
|
||||
registeredThread->GetRunningEventDelay(
|
||||
lockedThreadData->GetRunningEventDelay(
|
||||
aNow, currentEventDelay, currentEventRunning);
|
||||
|
||||
// Note: eventDelay is a different definition of
|
||||
|
|
Загрузка…
Ссылка в новой задаче