Bug 1722261 - New header ProfilerThreadState.h will contain thread-related profiler APIs - r=canaltinova

Thread-related APIs that are currently in ProfilerState.h will move here, and will use the new ThreadRegistration classes introduced in bug 1721939.

In this patch the header is empty apart from a few #includes, and users of "ProfilerState.h"'s thread functions now #include "ProfilerThreadState.h" instead. So there are no actual code changes yet.

Differential Revision: https://phabricator.services.mozilla.com/D121843
This commit is contained in:
Gerald Squelart 2021-08-19 02:44:58 +00:00
Родитель c6e24a791e
Коммит b64fd5a92c
6 изменённых файлов: 22 добавлений и 2 удалений

Просмотреть файл

@ -11,6 +11,7 @@
# include "nsProfiler.h"
#endif
#include "GeckoProfiler.h"
#include "mozilla/BaseProfilerDetail.h"
#include "mozilla/ClearOnShutdown.h"
#include "mozilla/DataMutex.h"

Просмотреть файл

@ -162,6 +162,7 @@ EXPORTS.mozilla += [
"public/ProfilerThreadRegistrationData.h",
"public/ProfilerThreadRegistrationInfo.h",
"public/ProfilerThreadRegistry.h",
"public/ProfilerThreadState.h",
"public/ProfilerUtils.h",
]

Просмотреть файл

@ -26,6 +26,7 @@
#include "mozilla/ProfilerLabels.h"
#include "mozilla/ProfilerMarkers.h"
#include "mozilla/ProfilerState.h"
#include "mozilla/ProfilerThreadState.h"
enum class IsFastShutdown {
No,

Просмотреть файл

@ -11,7 +11,7 @@
#ifndef ProfilerLabels_h
#define ProfilerLabels_h
#include "mozilla/ProfilerState.h"
#include "mozilla/ProfilerThreadState.h"
#include "js/ProfilingCategory.h"
#include "js/ProfilingStack.h"

Просмотреть файл

@ -14,7 +14,7 @@
#define ProfilerMarkersPrerequisites_h
#include "mozilla/BaseProfilerMarkersPrerequisites.h"
#include "mozilla/ProfilerState.h"
#include "mozilla/ProfilerThreadState.h"
#ifdef MOZ_GECKO_PROFILER

Просмотреть файл

@ -0,0 +1,17 @@
/* -*- 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/. */
// This header contains functions that give information about the Profiler state
// with regards to the current thread.
#ifndef ProfilerThreadState_h
#define ProfilerThreadState_h
#include "mozilla/ProfilerState.h"
#include "mozilla/ProfilerThreadRegistration.h"
#include "mozilla/ProfilerThreadRegistry.h"
#endif // ProfilerThreadState_h