This moves critical parts of PerfStats into mozglue so that they can be used by things that don't have access to full XUL. At the same time make everything lockless and limit RecordMeasurementStart/End to the main thread to prevent race conditions on the start times. Differential Revision: https://phabricator.services.mozilla.com/D294018
21 lines
576 B
INI
21 lines
576 B
INI
# 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/.
|
|
|
|
UNIFIED_SOURCES += ["PageloadEvent.cpp", "PerfStats.cpp"]
|
|
|
|
EXPORTS.mozilla += [
|
|
"PageloadEvent.h",
|
|
"Perfetto.h",
|
|
]
|
|
|
|
DEFINES["MOZ_APP_VERSION_DISPLAY"] = CONFIG["MOZ_APP_VERSION_DISPLAY"]
|
|
|
|
include("/ipc/chromium/chromium-config.mozbuild")
|
|
|
|
if CONFIG["MOZ_PERFETTO"]:
|
|
UNIFIED_SOURCES += ["Perfetto.cpp"]
|
|
DIRS += ["/third_party/perfetto/"]
|
|
|
|
FINAL_LIBRARY = "xul"
|