gecko-dev/mozglue/baseprofiler/core
Gerald Squelart 098790a8eb Bug 1703410 - Only change Windows timer resolution if PROFILER_ADJUST_TIMER_RESOLUTION is set - r=florian
On Windows, the profiler changes the timer resolution when the sampling interval is less than 10ms.
However this change affects all of Firefox, which can change other behaviors, sometimes causing confusion when refresh-rate issues magically disappear when the profiler is running.

So now by default the profiler will not change the timer resolution. This should rarely affect the profiler's effective sampling rate, unless all threads in a process are in a waiting state, in which case there is nothing new to sample anyway! The front-end is investigating ways to make sampling gaps more obvious, see https://github.com/firefox-devtools/profiler/issues/2962

If some power users really need the added sampling precision in some profiling sessions, the timer resolution change may be requested before running Firefox, by setting the environment variable "PROFILER_ADJUST_TIMER_RESOLUTION" to any value.

Differential Revision: https://phabricator.services.mozilla.com/D115451
2021-05-19 22:29:17 +00:00
..
vtune
EHABIStackWalk.cpp
EHABIStackWalk.h
PageInformation.cpp
PageInformation.h
PlatformMacros.h
ProfileBuffer.cpp
ProfileBuffer.h
ProfileBufferEntry.cpp Bug 1710757 - Fix baseprofiler native-frame output - r=florian 2021-05-12 10:22:55 +00:00
ProfileBufferEntry.h
ProfileJSONWriter.cpp
ProfiledThreadData.cpp
ProfiledThreadData.h
ProfilerBacktrace.cpp
ProfilerBacktrace.h
ProfilerMarkers.cpp
ProfilingCategory.cpp
ProfilingStack.cpp
RegisteredThread.cpp
RegisteredThread.h
ThreadInfo.h
VTuneProfiler.cpp
VTuneProfiler.h
platform-linux-android.cpp
platform-macos.cpp
platform-win32.cpp Bug 1703410 - Only change Windows timer resolution if PROFILER_ADJUST_TIMER_RESOLUTION is set - r=florian 2021-05-19 22:29:17 +00:00
platform.cpp Bug 1708350 - profiler_suspend_and_sample_thread can now sample the current thread - r=canaltinova 2021-05-06 23:23:40 +00:00
platform.h
shared-libraries-linux.cc
shared-libraries-macos.cc
shared-libraries-win32.cc Bug 1702086 - Part4: Use PEHeaders::GetBounds instead of GetModuleInformation. r=gerald 2021-05-19 18:01:49 +00:00