summaryrefslogtreecommitdiffstats
path: root/tools/profiler/core/ProfileBuffer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/profiler/core/ProfileBuffer.cpp')
-rw-r--r--tools/profiler/core/ProfileBuffer.cpp5
1 files changed, 3 insertions, 2 deletions
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(