From fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 03:14:29 +0200 Subject: Merging upstream version 125.0.1. Signed-off-by: Daniel Baumann --- tools/profiler/core/ProfileBuffer.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tools/profiler/core/ProfileBuffer.cpp') diff --git a/tools/profiler/core/ProfileBuffer.cpp b/tools/profiler/core/ProfileBuffer.cpp index bc6314fa32..d785cf7956 100644 --- a/tools/profiler/core/ProfileBuffer.cpp +++ b/tools/profiler/core/ProfileBuffer.cpp @@ -193,9 +193,10 @@ void ProfileBufferCollector::CollectJitReturnAddr(void* aAddr) { mBuf.AddEntry(ProfileBufferEntry::JitReturnAddr(aAddr)); } -void ProfileBufferCollector::CollectWasmFrame(const char* aLabel) { +void ProfileBufferCollector::CollectWasmFrame( + JS::ProfilingCategoryPair aCategory, const char* aLabel) { mBuf.CollectCodeLocation("", aLabel, 0, 0, Nothing(), Nothing(), - Some(JS::ProfilingCategoryPair::JS_Wasm)); + Some(aCategory)); } void ProfileBufferCollector::CollectProfilingStackFrame( -- cgit v1.2.3