From 086c044dc34dfc0f74fbe41f4ecb402b2cd34884 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 03:13:33 +0200 Subject: Merging upstream version 125.0.1. Signed-off-by: Daniel Baumann --- tools/profiler/public/ProfilerThreadRegistrationInfo.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tools/profiler/public/ProfilerThreadRegistrationInfo.h') diff --git a/tools/profiler/public/ProfilerThreadRegistrationInfo.h b/tools/profiler/public/ProfilerThreadRegistrationInfo.h index e116c3059e..18a1c8fbaf 100644 --- a/tools/profiler/public/ProfilerThreadRegistrationInfo.h +++ b/tools/profiler/public/ProfilerThreadRegistrationInfo.h @@ -46,7 +46,10 @@ class ThreadRegistrationInfo { private: static TimeStamp ExistingRegisterTimeOrNow() { - TimeStamp registerTime = baseprofiler::detail::GetThreadRegistrationTime(); + TimeStamp registerTime; +#ifdef MOZ_GECKO_PROFILER + registerTime = baseprofiler::detail::GetThreadRegistrationTime(); +#endif if (!registerTime) { registerTime = TimeStamp::Now(); } -- cgit v1.2.3