зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1453786 - Remove unnecessary MOZ_GECKO_PROFILER #ifdefs in GeckoProfiler.h. r=njn
These lines of code are within the #else section of the #ifndef MOZ_GECKO_PROFILER at the top of the file, so MOZ_GECKO_PROFILER is always defined for them. MozReview-Commit-ID: IxRYexzZH0G --HG-- extra : rebase_source : 302e5515323a63f145eed75a2b66a04fbde052e5
This commit is contained in:
Родитель
584905a52f
Коммит
8ef4dd52e6
|
@ -147,7 +147,6 @@ struct ProfilerFeature
|
|||
#undef DECLARE
|
||||
};
|
||||
|
||||
#ifdef MOZ_GECKO_PROFILER
|
||||
namespace mozilla {
|
||||
namespace profiler {
|
||||
namespace detail {
|
||||
|
@ -203,7 +202,6 @@ private:
|
|||
} // namespace detail
|
||||
} // namespace profiler
|
||||
} // namespace mozilla
|
||||
#endif
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
// Start and stop the profiler
|
||||
|
@ -328,11 +326,7 @@ void profiler_clear_js_context();
|
|||
// calls.
|
||||
inline bool profiler_is_active()
|
||||
{
|
||||
#ifdef MOZ_GECKO_PROFILER
|
||||
return mozilla::profiler::detail::RacyFeatures::IsActive();
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
// Is the profiler active and paused? Returns false if the profiler is inactive.
|
||||
|
|
Загрузка…
Ссылка в новой задаче