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 Bug 1828013 - Add a scriptable API to list all current nsITimer instances, r=smaug. 2023-04-20 09:43:41 +00:00
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 Bug 1542802 - Part 1: Replace LazyIdleThread with a thin wrapper around nsThreadPool, r=jesup,gstoll 2023-03-02 15:52:32 +00:00
LazyIdleThread.h Bug 1542802 - Part 1: Replace LazyIdleThread with a thin wrapper around nsThreadPool, r=jesup,gstoll 2023-03-02 15:52:32 +00:00
LeakRefPtr.h
MainThreadIdlePeriod.cpp
MainThreadIdlePeriod.h
MainThreadUtils.h Bug 1824465 - Part 1: Introduce ReleaseAssertIsOnMainThread, r=xpcom-reviewers,emilio,kmag 2023-04-19 22:10:07 +00:00
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 Bug 1800213 - Add a flag for creating nsThreads with a NONMAINUITHREAD MessageLoop. r=xpcom-reviewers,nika 2023-02-28 14:32:42 +00:00
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 Bug 1828013 - Add a scriptable API to list all current nsITimer instances, r=smaug. 2023-04-20 09:43:41 +00:00
nsMemoryPressure.cpp
nsMemoryPressure.h
nsProcess.h
nsProcessCommon.cpp Bug 1819311 - Collect errors on process launch r=nika,geckoview-reviewers,owlish 2023-04-13 08:35:24 +00:00
nsProxyRelease.cpp
nsProxyRelease.h
nsThread.cpp Bug 1836191 - remove PerformanceCounter that was only used by ChromeUtils.requestPerformanceMetrics, r=smaug. 2023-06-08 21:53:18 +00:00
nsThread.h Bug 1836191 - remove PerformanceCounter that was only used by ChromeUtils.requestPerformanceMetrics, r=smaug. 2023-06-08 21:53:18 +00:00
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 Bug 1825360 - Remove the NS_DISPATCH_SYNC flag, r=necko-reviewers,geckoview-reviewers,media-playback-reviewers,karlt,jesup,m_kato,emilio 2023-03-30 16:53:51 +00:00
nsThreadPool.h
nsThreadSyncDispatch.h Bug 1825360 - Remove the NS_DISPATCH_SYNC flag, r=necko-reviewers,geckoview-reviewers,media-playback-reviewers,karlt,jesup,m_kato,emilio 2023-03-30 16:53:51 +00:00
nsThreadUtils.cpp Bug 1840313 return full TaskQueue class from CreateBackgroundTaskQueue() r=xpcom-reviewers,nika 2023-06-26 21:52:50 +00:00
nsThreadUtils.h Bug 1825360 - Remove the NS_DISPATCH_SYNC flag, r=necko-reviewers,geckoview-reviewers,media-playback-reviewers,karlt,jesup,m_kato,emilio 2023-03-30 16:53:51 +00:00
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 Bug 1828013 - Add a scriptable API to list all current nsITimer instances, r=smaug. 2023-04-20 09:43:41 +00:00
Queue.h
RecursiveMutex.cpp
RecursiveMutex.h
ReentrantMonitor.h
RWLock.cpp
RWLock.h
SchedulerGroup.cpp Bug 1836191 - remove PerformanceCounter that was only used by ChromeUtils.requestPerformanceMetrics, r=smaug. 2023-06-08 21:53:18 +00:00
SchedulerGroup.h Bug 1836191 - remove PerformanceCounter that was only used by ChromeUtils.requestPerformanceMetrics, r=smaug. 2023-06-08 21:53:18 +00:00
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 Bug 1825360 - Remove the NS_DISPATCH_SYNC flag, r=necko-reviewers,geckoview-reviewers,media-playback-reviewers,karlt,jesup,m_kato,emilio 2023-03-30 16:53:51 +00:00
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 Bug 1754554: Resolve TSAN issue with mBaseQueue in memory reporting r=mccr8 2023-05-15 16:42:30 +00:00
ThreadEventQueue.h Bug 1754554: Resolve TSAN issue with mBaseQueue in memory reporting r=mccr8 2023-05-15 16:42:30 +00:00
ThreadEventTarget.cpp Bug 1825360 - Remove the NS_DISPATCH_SYNC flag, r=necko-reviewers,geckoview-reviewers,media-playback-reviewers,karlt,jesup,m_kato,emilio 2023-03-30 16:53:51 +00:00
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