From 3ea972bdd8380132264915a407d4f30fd81a5553 Mon Sep 17 00:00:00 2001 From: Gerald Squelart Date: Tue, 8 Feb 2022 02:40:49 +0000 Subject: [PATCH] Bug 1735397 - Add mozilla/BaseAndGeckoProfilerDetail.h header for shared profiler-only things - r=florian Differential Revision: https://phabricator.services.mozilla.com/D135852 --- .../core/BaseAndGeckoProfilerDetail.cpp | 13 +++++++++++ mozglue/baseprofiler/moz.build | 2 ++ .../public/BaseAndGeckoProfilerDetail.h | 22 +++++++++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 mozglue/baseprofiler/core/BaseAndGeckoProfilerDetail.cpp create mode 100644 mozglue/baseprofiler/public/BaseAndGeckoProfilerDetail.h diff --git a/mozglue/baseprofiler/core/BaseAndGeckoProfilerDetail.cpp b/mozglue/baseprofiler/core/BaseAndGeckoProfilerDetail.cpp new file mode 100644 index 000000000000..35ab8a26e93f --- /dev/null +++ b/mozglue/baseprofiler/core/BaseAndGeckoProfilerDetail.cpp @@ -0,0 +1,13 @@ +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#include "mozilla/BaseAndGeckoProfilerDetail.h" + +namespace mozilla::profiler::detail { + +; // TODO Add code here. + +} // namespace mozilla::profiler::detail diff --git a/mozglue/baseprofiler/moz.build b/mozglue/baseprofiler/moz.build index aa59f5afdf4e..a1929471fd5c 100644 --- a/mozglue/baseprofiler/moz.build +++ b/mozglue/baseprofiler/moz.build @@ -80,6 +80,7 @@ EXPORTS += [ ] EXPORTS.mozilla += [ + "public/BaseAndGeckoProfilerDetail.h", "public/BaseProfileJSONWriter.h", "public/BaseProfilerCounts.h", "public/BaseProfilerDetail.h", @@ -108,6 +109,7 @@ EXPORTS.mozilla += [ ] UNIFIED_SOURCES += [ + "core/BaseAndGeckoProfilerDetail.cpp", "core/ProfilerUtils.cpp", ] diff --git a/mozglue/baseprofiler/public/BaseAndGeckoProfilerDetail.h b/mozglue/baseprofiler/public/BaseAndGeckoProfilerDetail.h new file mode 100644 index 000000000000..b09e01fcd5f1 --- /dev/null +++ b/mozglue/baseprofiler/public/BaseAndGeckoProfilerDetail.h @@ -0,0 +1,22 @@ +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +// Internal Base and Gecko Profiler utilities. +// It should declare or define things that are used in both profilers, but not +// needed outside of the profilers. +// In particular, it is *not* included in popular headers like BaseProfiler.h +// and GeckoProfiler.h, to avoid rebuilding the world when this is modified. + +#ifndef BaseAndGeckoProfilerDetail_h +#define BaseAndGeckoProfilerDetail_h + +namespace mozilla::profiler::detail { + +; // TODO Add APIs here. + +} // namespace mozilla::profiler::detail + +#endif // BaseAndGeckoProfilerDetail_h