mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-18 16:17:50 +01:00

Instead use the preprocessor to avoid compiling Perfetto related code when RTC_USE_PERFETTO is not defined. Bug: None Change-Id: I85b37cb0287327035ac2e8feb3caf9505486a1e4 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/368343 Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org> Reviewed-by: Evan Shrubsole <eshr@webrtc.org> Cr-Commit-Position: refs/heads/main@{#43410}
17 lines
595 B
C++
17 lines
595 B
C++
/*
|
|
* Copyright (c) 2024 The WebRTC project authors. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license
|
|
* that can be found in the LICENSE file in the root of the source
|
|
* tree. An additional intellectual property rights grant can be found
|
|
* in the file PATENTS. All contributing project authors may
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
*/
|
|
|
|
#include "rtc_base/trace_categories.h"
|
|
|
|
#if defined(RTC_USE_PERFETTO)
|
|
|
|
PERFETTO_TRACK_EVENT_STATIC_STORAGE_IN_NAMESPACE_WITH_ATTRS(webrtc, RTC_EXPORT);
|
|
|
|
#endif // RTC_USE_PERFETTO
|