diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-15 03:35:49 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-15 03:35:49 +0000 |
commit | d8bbc7858622b6d9c278469aab701ca0b609cddf (patch) | |
tree | eff41dc61d9f714852212739e6b3738b82a2af87 /mozglue/baseprofiler | |
parent | Releasing progress-linux version 125.0.3-1~progress7.99u1. (diff) | |
download | firefox-d8bbc7858622b6d9c278469aab701ca0b609cddf.tar.xz firefox-d8bbc7858622b6d9c278469aab701ca0b609cddf.zip |
Merging upstream version 126.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'mozglue/baseprofiler')
-rw-r--r-- | mozglue/baseprofiler/core/platform.cpp | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/mozglue/baseprofiler/core/platform.cpp b/mozglue/baseprofiler/core/platform.cpp index 4f69aadd4a..6080ba88c6 100644 --- a/mozglue/baseprofiler/core/platform.cpp +++ b/mozglue/baseprofiler/core/platform.cpp @@ -1283,9 +1283,9 @@ struct NativeStack { // Merges the profiling stack and native stack, outputting the details to // aCollector. -static void MergeStacks(uint32_t aFeatures, bool aIsSynchronous, +static void MergeStacks(bool aIsSynchronous, const RegisteredThread& aRegisteredThread, - const Registers& aRegs, const NativeStack& aNativeStack, + const NativeStack& aNativeStack, ProfilerStackCollector& aCollector) { // WARNING: this function runs within the profiler's "critical section". // WARNING: this function might be called while the profiler is inactive, and @@ -1695,13 +1695,11 @@ static inline void DoSharedSample( aCaptureOptions == StackCaptureOptions::Full) { DoNativeBacktrace(aLock, aRegisteredThread, aRegs, nativeStack); - MergeStacks(ActivePS::Features(aLock), aIsSynchronous, aRegisteredThread, - aRegs, nativeStack, collector); + MergeStacks(aIsSynchronous, aRegisteredThread, nativeStack, collector); } else #endif { - MergeStacks(ActivePS::Features(aLock), aIsSynchronous, aRegisteredThread, - aRegs, nativeStack, collector); + MergeStacks(aIsSynchronous, aRegisteredThread, nativeStack, collector); // We can't walk the whole native stack, but we can record the top frame. if (aCaptureOptions == StackCaptureOptions::Full) { @@ -3786,13 +3784,11 @@ void profiler_suspend_and_sample_thread(BaseProfilerThreadId aThreadId, # error "Invalid configuration" # endif - MergeStacks(aFeatures, isSynchronous, registeredThread, aRegs, - nativeStack, aCollector); + MergeStacks(isSynchronous, registeredThread, nativeStack, aCollector); } else #endif { - MergeStacks(aFeatures, isSynchronous, registeredThread, aRegs, - nativeStack, aCollector); + MergeStacks(isSynchronous, registeredThread, nativeStack, aCollector); aCollector.CollectNativeLeafAddr((void*)aRegs.mPC); } |