diff --git a/tools/profiler/public/GeckoProfiler.h b/tools/profiler/public/GeckoProfiler.h index 6d58b17c573c..69cb6c23f5df 100644 --- a/tools/profiler/public/GeckoProfiler.h +++ b/tools/profiler/public/GeckoProfiler.h @@ -246,14 +246,19 @@ static inline bool profiler_in_privacy_mode() { return false; } static inline void profiler_log(const char *str) {} static inline void profiler_log(const char *fmt, va_list args) {} +namespace mozilla { + class AutoProfilerRegister final MOZ_STACK_CLASS { - AutoProfilerRegister(const char* aName) {} +public: + explicit AutoProfilerRegister(const char* aName) {} private: AutoProfilerRegister(const AutoProfilerRegister&) = delete; AutoProfilerRegister& operator=(const AutoProfilerRegister&) = delete; }; +} // namespace mozilla + #else #include "GeckoProfilerImpl.h"