gecko-dev/xpcom/threads
Jamie Nicol 7ccc1f6be6 Bug 1843534 - Avoid unnecessary timestamp in nsTimerImpl::Fire if logging is disabled. r=xpcom-reviewers,nika
On certain devices we have seen that taking frequent timestamps can be
expensive, therefore it makes sense to reduce the number of timestamps
taken in hot paths. nsTimerImpl::Fire() currently takes a timestamp
which only gets used in logging. This patch therefore makes it so the
timestamp is only taken when logging is enabled.

Differential Revision: https://phabricator.services.mozilla.com/D185010
2023-08-09 10:28:38 +00:00
..
AbstractThread.cpp
AbstractThread.h
BlockingResourceBase.cpp
BlockingResourceBase.h
components.conf
CondVar.h
CPUUsageWatcher.cpp
CPUUsageWatcher.h
DataMutex.h
DeadlockDetector.h
DelayedRunnable.cpp
DelayedRunnable.h
EventQueue.cpp
EventQueue.h
EventTargetCapability.h
IdlePeriodState.cpp
IdlePeriodState.h
IdleTaskRunner.cpp Bug 1839102 - Use enum class for Task kind. r=bas 2023-07-26 05:09:29 +00:00
IdleTaskRunner.h
InputTaskManager.cpp
InputTaskManager.h
LazyIdleThread.cpp
LazyIdleThread.h
LeakRefPtr.h
MainThreadIdlePeriod.cpp
MainThreadIdlePeriod.h
MainThreadUtils.h
Monitor.h
moz.build Bug 1842007 - Part 7: Remove MozPromise::FromDomPromise r=xpcom-reviewers,necko-reviewers,nika,jesup 2023-07-13 12:43:41 +00:00
MozPromise.h Bug 1842007 - Part 7: Remove MozPromise::FromDomPromise r=xpcom-reviewers,necko-reviewers,nika,jesup 2023-07-13 12:43:41 +00:00
Mutex.h
nsEnvironment.cpp
nsEnvironment.h
nsICancelableRunnable.h
nsIDirectTaskDispatcher.idl
nsIDiscardableRunnable.h
nsIEnvironment.idl
nsIEventTarget.idl Bug 1843568 - Part 3: Annotate nsIEventTarget as rust_sync, r=xpcom-reviewers,barret 2023-07-20 17:39:03 +00:00
nsIIdlePeriod.idl
nsIIdleRunnable.h
nsINamed.idl
nsIProcess.idl
nsIRunnable.idl
nsISerialEventTarget.idl Bug 1843568 - Part 3: Annotate nsIEventTarget as rust_sync, r=xpcom-reviewers,barret 2023-07-20 17:39:03 +00:00
nsISupportsPriority.idl
nsITargetShutdownTask.h
nsIThread.idl Bug 1843568 - Part 3: Annotate nsIEventTarget as rust_sync, r=xpcom-reviewers,barret 2023-07-20 17:39:03 +00:00
nsIThreadInternal.idl Bug 1843568 - Part 3: Annotate nsIEventTarget as rust_sync, r=xpcom-reviewers,barret 2023-07-20 17:39:03 +00:00
nsIThreadManager.idl
nsIThreadPool.idl Bug 1843568 - Part 3: Annotate nsIEventTarget as rust_sync, r=xpcom-reviewers,barret 2023-07-20 17:39:03 +00:00
nsIThreadShutdown.idl
nsITimer.idl
nsMemoryPressure.cpp
nsMemoryPressure.h
nsProcess.h
nsProcessCommon.cpp
nsProxyRelease.cpp
nsProxyRelease.h
nsThread.cpp
nsThread.h
nsThreadManager.cpp Bug 1839596 - Explicitly tell jemalloc which is the main thread r=smaug 2023-06-30 00:57:20 +00:00
nsThreadManager.h Bug 1840313 return full TaskQueue class from CreateBackgroundTaskQueue() r=xpcom-reviewers,nika 2023-06-26 21:52:50 +00:00
nsThreadPool.cpp
nsThreadPool.h
nsThreadSyncDispatch.h
nsThreadUtils.cpp Bug 1840313 return full TaskQueue class from CreateBackgroundTaskQueue() r=xpcom-reviewers,nika 2023-06-26 21:52:50 +00:00
nsThreadUtils.h
nsTimerImpl.cpp Bug 1843534 - Avoid unnecessary timestamp in nsTimerImpl::Fire if logging is disabled. r=xpcom-reviewers,nika 2023-08-09 10:28:38 +00:00
nsTimerImpl.h
Queue.h
RecursiveMutex.cpp
RecursiveMutex.h
ReentrantMonitor.h
RWLock.cpp
RWLock.h
SchedulerGroup.cpp
SchedulerGroup.h
SharedThreadPool.cpp
SharedThreadPool.h Bug 1843568 - Part 3: Annotate nsIEventTarget as rust_sync, r=xpcom-reviewers,barret 2023-07-20 17:39:03 +00:00
SpinEventLoopUntil.h
StateMirroring.h Bug 1837570 - Canonical::ConnectMirror must also sync its value. 2023-06-22 21:23:48 +00:00
StateWatching.h
SynchronizedEventQueue.cpp
SynchronizedEventQueue.h
SyncRunnable.h
TaskCategory.h
TaskController.cpp Bug 1839102 - Use enum class for Task kind. r=bas 2023-07-26 05:09:29 +00:00
TaskController.h Bug 1839102 - Use enum class for Task kind. r=bas 2023-07-26 05:09:29 +00:00
TaskDispatcher.h
TaskQueue.cpp Bug 1840313 fetch and remove the first element of queue in one operation r=emilio 2023-06-26 21:52:50 +00:00
TaskQueue.h Bug 1840313 remove declaration of non-existent TaskQueue::CancelDelayedRunnables() r=emilio 2023-06-26 21:52:50 +00:00
ThreadBound.h
ThreadDelay.cpp
ThreadDelay.h
ThreadEventQueue.cpp
ThreadEventQueue.h
ThreadEventTarget.cpp
ThreadEventTarget.h
ThreadLocalVariables.cpp
ThrottledEventQueue.cpp
ThrottledEventQueue.h
TimerThread.cpp Bug 1831014: Allowed the first timer in a wake-up to fire slightly early as well. r=smaug 2023-08-04 20:00:10 +00:00
TimerThread.h Bug 1831014: Allowed the first timer in a wake-up to fire slightly early as well. r=smaug 2023-08-04 20:00:10 +00:00
VsyncTaskManager.cpp
VsyncTaskManager.h
WinHandleWatcher.cpp
WinHandleWatcher.h