зеркало из https://github.com/mozilla/gecko-dev.git
b75080bb8b
On Linux and Android, both jitdump and the marker file will keep using `CLOCK_MONOTONIC` nanoseconds, as before. On macOS, both jitdump and the marker file will now be using `TimeStamp::RawMachAbsoluteTimeNanoseconds()` , i.e. "nanoseconds since mach_absolute_time origin". This value has the advantage that it is also relatively easy to obtain in other browser engines, because their internal timestamp value is stored in milliseconds or nanoseconds rather than in `mach_absolute_time` ticks. In the past, on macOS, Firefox was using `CLOCK_MONOTONIC` nanoseconds for jitdump and `TimeStamp::RawMachAbsoluteTimeValue()` for the marker file. This inconsistency is now fixed. I will update samply to change how it treats jitdump timestamps on macOS. There are no other consumers of jitdump files on macOS that I know of. On Windows, we will keep using raw QPC values for the marker file - this matches what's in the ETW events. Jitdump on Windows is mostly unused but I'm updating it to match. Furthermore, this fixes the order in mozglue/misc/moz.build to make sure we always use the TimeStamp_darwin implementation on Darwin (and not just due to a broken configure check, see bug 1681445), and it fixes the #ifdef in TimeStamp.h to match the Darwin check. Differential Revision: https://phabricator.services.mozilla.com/D199592 |
||
---|---|---|
.. | ||
decimal | ||
AutoProfilerLabel.cpp | ||
AutoProfilerLabel.h | ||
AwakeTimeStamp.cpp | ||
AwakeTimeStamp.h | ||
ConditionVariable_noop.cpp | ||
ConditionVariable_posix.cpp | ||
ConditionVariable_windows.cpp | ||
Debug.cpp | ||
Debug.h | ||
DynamicallyLinkedFunctionPtr.h | ||
GetKnownFolderPath.cpp | ||
GetKnownFolderPath.h | ||
ImportDir.h | ||
IntegerPrintfMacros.h | ||
MmapFaultHandler.cpp | ||
MmapFaultHandler.h | ||
MutexPlatformData_noop.h | ||
MutexPlatformData_posix.h | ||
MutexPlatformData_windows.h | ||
Mutex_noop.cpp | ||
Mutex_posix.cpp | ||
Mutex_windows.cpp | ||
NativeNt.h | ||
PlatformConditionVariable.h | ||
PlatformMutex.h | ||
PlatformRWLock.h | ||
PreXULSkeletonUI.cpp | ||
PreXULSkeletonUI.h | ||
Printf.cpp | ||
Printf.h | ||
ProcessType.cpp | ||
ProcessType.h | ||
RWLock_posix.cpp | ||
RWLock_windows.cpp | ||
RuntimeExceptionModule.cpp | ||
RuntimeExceptionModule.h | ||
SIMD.cpp | ||
SIMD.h | ||
SIMD_avx2.cpp | ||
SSE.cpp | ||
SSE.h | ||
Sprintf.h | ||
StackWalk.cpp | ||
StackWalk.h | ||
StackWalkThread.h | ||
StackWalk_windows.h | ||
TimeStamp.cpp | ||
TimeStamp.h | ||
TimeStamp_darwin.cpp | ||
TimeStamp_posix.cpp | ||
TimeStamp_windows.cpp | ||
TimeStamp_windows.h | ||
Uptime.cpp | ||
Uptime.h | ||
WinUtils.h | ||
WindowsDllMain.cpp | ||
WindowsDpiAwareness.h | ||
WindowsDpiInitialization.cpp | ||
WindowsDpiInitialization.h | ||
WindowsEnumProcessModules.h | ||
WindowsMapRemoteView.cpp | ||
WindowsMapRemoteView.h | ||
WindowsProcessMitigations.cpp | ||
WindowsProcessMitigations.h | ||
WindowsStackCookie.h | ||
WindowsUnicode.cpp | ||
WindowsUnicode.h | ||
WindowsUnwindInfo.h | ||
moz.build |