зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1903098 (MOZ) - reflect upstream cd09858f4a changes in GeckoTraceEvent.h r=ng
Differential Revision: https://phabricator.services.mozilla.com/D214642
This commit is contained in:
Родитель
d3d0fa392d
Коммит
d758bff87d
|
@ -24,6 +24,18 @@
|
|||
#define RTC_TRACE_EVENTS_ENABLED 1
|
||||
#endif
|
||||
|
||||
#define RTC_NOOP() \
|
||||
do { \
|
||||
} while (0)
|
||||
|
||||
// TODO(b/42226290): Add implementation for these events with Perfetto.
|
||||
#define TRACE_EVENT_BEGIN(category, name, ...) RTC_NOOP();
|
||||
#define TRACE_EVENT_END(category, ...) RTC_NOOP();
|
||||
#define TRACE_EVENT(category, name, ...) RTC_NOOP();
|
||||
#define TRACE_EVENT_INSTANT(category, name, ...) RTC_NOOP();
|
||||
#define TRACE_EVENT_CATEGORY_ENABLED(category) RTC_NOOP();
|
||||
#define TRACE_COUNTER(category, track, ...) RTC_NOOP();
|
||||
|
||||
// Type values for identifying types in the TraceValue union.
|
||||
#define TRACE_VALUE_TYPE_BOOL (static_cast<unsigned char>(1))
|
||||
#define TRACE_VALUE_TYPE_UINT (static_cast<unsigned char>(2))
|
||||
|
@ -737,10 +749,6 @@ class TraceEndOnScopeClose {
|
|||
// This section defines no-op alternatives to the tracing macros when
|
||||
// RTC_DISABLE_TRACE_EVENTS is defined.
|
||||
|
||||
#define RTC_NOOP() \
|
||||
do { \
|
||||
} while (0)
|
||||
|
||||
#define TRACE_DISABLED_BY_DEFAULT(name) "disabled-by-default-" name
|
||||
|
||||
#define TRACE_ID_MANGLE(id) 0
|
||||
|
|
Загрузка…
Ссылка в новой задаче