WebRTC perfetto chromium integration

Bug: webrtc:15917
Change-Id: I2a459565364e0eedba8d22c23427409b35ba8387
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/348780
Reviewed-by: Mikhail Khokhlov <khokhlov@google.com>
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Commit-Queue: Evan Shrubsole <eshr@google.com>
Cr-Commit-Position: refs/heads/main@{#42192}
This commit is contained in:
Evan Shrubsole 2024-04-29 11:36:58 +00:00 committed by WebRTC LUCI CQ
parent 569849e885
commit 047238ebda
2 changed files with 8 additions and 0 deletions

View file

@ -55,6 +55,8 @@ declare_args() {
# purposes. In any case, it doesn't depend on //third_party/perfetto which # purposes. In any case, it doesn't depend on //third_party/perfetto which
# is used for base tracing, so this feature is disabled. # is used for base tracing, so this feature is disabled.
enable_base_tracing = false enable_base_tracing = false
# TODO(b/336718643): Remove use_perfetto_client_library_flag.
use_perfetto_client_library = false use_perfetto_client_library = false
use_perfetto_trace_processor = false use_perfetto_trace_processor = false

View file

@ -388,6 +388,12 @@ if (is_mac || is_ios) {
rtc_common_configs += [ "//build/config/compiler:enable_arc" ] rtc_common_configs += [ "//build/config/compiler:enable_arc" ]
} }
} }
# TODO(b/336718643): Remove use_perfetto_client_library_flag.
if (build_with_chromium && use_perfetto_client_library) {
rtc_use_perfetto = true
}
if (rtc_use_perfetto) { if (rtc_use_perfetto) {
rtc_common_configs += [ "//third_party/perfetto/gn:public_config" ] rtc_common_configs += [ "//third_party/perfetto/gn:public_config" ]
} }