Move event_tracer out of rtc_base_approved

Bug: webrtc:9838
Change-Id: Ic3c424729b5edd3e378c4195afe33ae5c88ad491
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/259312
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Commit-Queue: Florent Castelli <orphis@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#36637}
This commit is contained in:
Florent Castelli
2022-04-19 17:47:13 +02:00
committed by WebRTC LUCI CQ
parent ed4aadc0a2
commit a30aef3dea
21 changed files with 68 additions and 3 deletions

View File

@ -35,6 +35,7 @@ rtc_library("audio_codecs_api") {
"../../api:field_trials_view", "../../api:field_trials_view",
"../../rtc_base:buffer", "../../rtc_base:buffer",
"../../rtc_base:checks", "../../rtc_base:checks",
"../../rtc_base:event_tracer",
"../../rtc_base:refcount", "../../rtc_base:refcount",
"../../rtc_base:rtc_base_approved", "../../rtc_base:rtc_base_approved",
"../../rtc_base:sanitizer", "../../rtc_base:sanitizer",

View File

@ -194,6 +194,7 @@ rtc_library("rtc_software_fallback_wrappers") {
"../../modules/video_coding:video_codec_interface", "../../modules/video_coding:video_codec_interface",
"../../modules/video_coding:video_coding_utility", "../../modules/video_coding:video_coding_utility",
"../../rtc_base:checks", "../../rtc_base:checks",
"../../rtc_base:event_tracer",
"../../rtc_base:logging", "../../rtc_base:logging",
"../../rtc_base:rtc_base_approved", "../../rtc_base:rtc_base_approved",
"../../rtc_base/system:rtc_export", "../../rtc_base/system:rtc_export",

View File

@ -211,6 +211,7 @@ rtc_library("rtp_sender") {
"../modules/video_coding:video_codec_interface", "../modules/video_coding:video_codec_interface",
"../rtc_base", "../rtc_base",
"../rtc_base:checks", "../rtc_base:checks",
"../rtc_base:event_tracer",
"../rtc_base:location", "../rtc_base:location",
"../rtc_base:logging", "../rtc_base:logging",
"../rtc_base:macromagic", "../rtc_base:macromagic",
@ -322,6 +323,7 @@ rtc_library("call") {
"../modules/video_coding", "../modules/video_coding",
"../rtc_base:checks", "../rtc_base:checks",
"../rtc_base:copy_on_write_buffer", "../rtc_base:copy_on_write_buffer",
"../rtc_base:event_tracer",
"../rtc_base:location", "../rtc_base:location",
"../rtc_base:logging", "../rtc_base:logging",
"../rtc_base:macromagic", "../rtc_base:macromagic",

View File

@ -60,6 +60,7 @@ rtc_library("common_video") {
"../rtc_base:bitstream_reader", "../rtc_base:bitstream_reader",
"../rtc_base:buffer", "../rtc_base:buffer",
"../rtc_base:checks", "../rtc_base:checks",
"../rtc_base:event_tracer",
"../rtc_base:logging", "../rtc_base:logging",
"../rtc_base:macromagic", "../rtc_base:macromagic",
"../rtc_base:race_checker", "../rtc_base:race_checker",

View File

@ -301,6 +301,7 @@ rtc_library("rtc_audio_video") {
"../rtc_base:byte_order", "../rtc_base:byte_order",
"../rtc_base:checks", "../rtc_base:checks",
"../rtc_base:copy_on_write_buffer", "../rtc_base:copy_on_write_buffer",
"../rtc_base:event_tracer",
"../rtc_base:ignore_wundef", "../rtc_base:ignore_wundef",
"../rtc_base:logging", "../rtc_base:logging",
"../rtc_base:macromagic", "../rtc_base:macromagic",
@ -420,6 +421,7 @@ if (rtc_build_dcsctp) {
"../p2p:rtc_p2p", "../p2p:rtc_p2p",
"../rtc_base:checks", "../rtc_base:checks",
"../rtc_base:copy_on_write_buffer", "../rtc_base:copy_on_write_buffer",
"../rtc_base:event_tracer",
"../rtc_base:logging", "../rtc_base:logging",
"../rtc_base:random", "../rtc_base:random",
"../rtc_base:rtc_base_approved", "../rtc_base:rtc_base_approved",

View File

@ -1035,6 +1035,7 @@ rtc_library("neteq") {
"../../rtc_base:audio_format_to_string", "../../rtc_base:audio_format_to_string",
"../../rtc_base:buffer", "../../rtc_base:buffer",
"../../rtc_base:checks", "../../rtc_base:checks",
"../../rtc_base:event_tracer",
"../../rtc_base:gtest_prod", "../../rtc_base:gtest_prod",
"../../rtc_base:logging", "../../rtc_base:logging",
"../../rtc_base:macromagic", "../../rtc_base:macromagic",

View File

@ -179,6 +179,7 @@ rtc_library("audio_processing") {
"../../common_audio/third_party/ooura:fft_size_256", "../../common_audio/third_party/ooura:fft_size_256",
"../../rtc_base:atomicops", "../../rtc_base:atomicops",
"../../rtc_base:checks", "../../rtc_base:checks",
"../../rtc_base:event_tracer",
"../../rtc_base:gtest_prod", "../../rtc_base:gtest_prod",
"../../rtc_base:ignore_wundef", "../../rtc_base:ignore_wundef",
"../../rtc_base:logging", "../../rtc_base:logging",

View File

@ -488,6 +488,7 @@ rtc_library("desktop_capture_generic") {
"../../api:sequence_checker", "../../api:sequence_checker",
"../../rtc_base", # TODO(kjellander): Cleanup in bugs.webrtc.org/3806. "../../rtc_base", # TODO(kjellander): Cleanup in bugs.webrtc.org/3806.
"../../rtc_base:checks", "../../rtc_base:checks",
"../../rtc_base:event_tracer",
"../../rtc_base:logging", "../../rtc_base:logging",
"../../rtc_base:macromagic", "../../rtc_base:macromagic",
"../../rtc_base:random", "../../rtc_base:random",

View File

@ -48,6 +48,7 @@ rtc_library("pacing") {
"../../logging:rtc_event_bwe", "../../logging:rtc_event_bwe",
"../../logging:rtc_event_pacing", "../../logging:rtc_event_pacing",
"../../rtc_base:checks", "../../rtc_base:checks",
"../../rtc_base:event_tracer",
"../../rtc_base:location", "../../rtc_base:location",
"../../rtc_base:logging", "../../rtc_base:logging",
"../../rtc_base:macromagic", "../../rtc_base:macromagic",

View File

@ -124,6 +124,7 @@ rtc_library("rtp_rtcp_format") {
"../../rtc_base:checks", "../../rtc_base:checks",
"../../rtc_base:copy_on_write_buffer", "../../rtc_base:copy_on_write_buffer",
"../../rtc_base:divide_round", "../../rtc_base:divide_round",
"../../rtc_base:event_tracer",
"../../rtc_base:logging", "../../rtc_base:logging",
"../../rtc_base:macromagic", "../../rtc_base:macromagic",
"../../rtc_base:rtc_base_approved", "../../rtc_base:rtc_base_approved",
@ -302,6 +303,7 @@ rtc_library("rtp_rtcp") {
"../../rtc_base:checks", "../../rtc_base:checks",
"../../rtc_base:copy_on_write_buffer", "../../rtc_base:copy_on_write_buffer",
"../../rtc_base:divide_round", "../../rtc_base:divide_round",
"../../rtc_base:event_tracer",
"../../rtc_base:gtest_prod", "../../rtc_base:gtest_prod",
"../../rtc_base:logging", "../../rtc_base:logging",
"../../rtc_base:macromagic", "../../rtc_base:macromagic",

View File

@ -35,6 +35,7 @@ rtc_library("utility") {
"../../api/task_queue", "../../api/task_queue",
"../../common_audio", "../../common_audio",
"../../rtc_base:checks", "../../rtc_base:checks",
"../../rtc_base:event_tracer",
"../../rtc_base:location", "../../rtc_base:location",
"../../rtc_base:logging", "../../rtc_base:logging",
"../../rtc_base:platform_thread", "../../rtc_base:platform_thread",

View File

@ -32,6 +32,7 @@ rtc_library("video_capture_module") {
"../../api/video:video_rtp_headers", "../../api/video:video_rtp_headers",
"../../common_video", "../../common_video",
"../../media:rtc_media_base", "../../media:rtc_media_base",
"../../rtc_base:event_tracer",
"../../rtc_base:logging", "../../rtc_base:logging",
"../../rtc_base:macromagic", "../../rtc_base:macromagic",
"../../rtc_base:refcount", "../../rtc_base:refcount",

View File

@ -343,6 +343,7 @@ rtc_library("video_coding") {
"../../rtc_base", "../../rtc_base",
"../../rtc_base:checks", "../../rtc_base:checks",
"../../rtc_base:copy_on_write_buffer", "../../rtc_base:copy_on_write_buffer",
"../../rtc_base:event_tracer",
"../../rtc_base:logging", "../../rtc_base:logging",
"../../rtc_base:macromagic", "../../rtc_base:macromagic",
"../../rtc_base:rtc_base_approved", "../../rtc_base:rtc_base_approved",
@ -448,6 +449,7 @@ rtc_library("video_coding_legacy") {
"../../common_video", "../../common_video",
"../../modules/rtp_rtcp:rtp_video_header", "../../modules/rtp_rtcp:rtp_video_header",
"../../rtc_base:checks", "../../rtc_base:checks",
"../../rtc_base:event_tracer",
"../../rtc_base:location", "../../rtc_base:location",
"../../rtc_base:logging", "../../rtc_base:logging",
"../../rtc_base:macromagic", "../../rtc_base:macromagic",
@ -586,6 +588,7 @@ rtc_library("webrtc_h264") {
"../../media:rtc_media_base", "../../media:rtc_media_base",
"../../rtc_base", "../../rtc_base",
"../../rtc_base:checks", "../../rtc_base:checks",
"../../rtc_base:event_tracer",
"../../rtc_base:logging", "../../rtc_base:logging",
"../../rtc_base:timeutils", "../../rtc_base:timeutils",
"../../rtc_base/system:rtc_export", "../../rtc_base/system:rtc_export",
@ -690,6 +693,7 @@ rtc_library("webrtc_vp8") {
"../../api/video_codecs:vp8_temporal_layers_factory", "../../api/video_codecs:vp8_temporal_layers_factory",
"../../common_video", "../../common_video",
"../../rtc_base:checks", "../../rtc_base:checks",
"../../rtc_base:event_tracer",
"../../rtc_base:logging", "../../rtc_base:logging",
"../../rtc_base:rtc_base_approved", "../../rtc_base:rtc_base_approved",
"../../rtc_base:rtc_numerics", "../../rtc_base:rtc_numerics",
@ -798,6 +802,7 @@ rtc_library("webrtc_vp9") {
"../../rtc_base", "../../rtc_base",
"../../rtc_base:buffer", "../../rtc_base:buffer",
"../../rtc_base:checks", "../../rtc_base:checks",
"../../rtc_base:event_tracer",
"../../rtc_base:logging", "../../rtc_base:logging",
"../../rtc_base:stringutils", "../../rtc_base:stringutils",
"../../rtc_base:timeutils", "../../rtc_base:timeutils",

View File

@ -108,6 +108,7 @@ rtc_library("rtc_p2p") {
"../rtc_base:byte_order", "../rtc_base:byte_order",
"../rtc_base:callback_list", "../rtc_base:callback_list",
"../rtc_base:checks", "../rtc_base:checks",
"../rtc_base:event_tracer",
"../rtc_base:ip_address", "../rtc_base:ip_address",
"../rtc_base:location", "../rtc_base:location",
"../rtc_base:logging", "../rtc_base:logging",

View File

@ -48,6 +48,7 @@ rtc_library("proxy") {
deps = [ deps = [
"../api:scoped_refptr", "../api:scoped_refptr",
"../api/task_queue", "../api/task_queue",
"../rtc_base:event_tracer",
"../rtc_base:location", "../rtc_base:location",
"../rtc_base:refcount", "../rtc_base:refcount",
"../rtc_base:rtc_base_approved", "../rtc_base:rtc_base_approved",
@ -84,6 +85,7 @@ rtc_source_set("channel") {
"../rtc_base", "../rtc_base",
"../rtc_base:checks", "../rtc_base:checks",
"../rtc_base:copy_on_write_buffer", "../rtc_base:copy_on_write_buffer",
"../rtc_base:event_tracer",
"../rtc_base:location", "../rtc_base:location",
"../rtc_base:logging", "../rtc_base:logging",
"../rtc_base:macromagic", "../rtc_base:macromagic",
@ -135,6 +137,7 @@ rtc_source_set("channel_manager") {
"../media:rtc_media_config", "../media:rtc_media_config",
"../rtc_base", "../rtc_base",
"../rtc_base:checks", "../rtc_base:checks",
"../rtc_base:event_tracer",
"../rtc_base:location", "../rtc_base:location",
"../rtc_base:macromagic", "../rtc_base:macromagic",
"../rtc_base:rtc_base_approved", "../rtc_base:rtc_base_approved",
@ -251,6 +254,7 @@ rtc_source_set("jsep_transport") {
"../rtc_base", "../rtc_base",
"../rtc_base:checks", "../rtc_base:checks",
"../rtc_base:copy_on_write_buffer", "../rtc_base:copy_on_write_buffer",
"../rtc_base:event_tracer",
"../rtc_base:logging", "../rtc_base:logging",
"../rtc_base:macromagic", "../rtc_base:macromagic",
"../rtc_base:refcount", "../rtc_base:refcount",
@ -320,6 +324,7 @@ rtc_source_set("jsep_transport_controller") {
"../rtc_base:callback_list", "../rtc_base:callback_list",
"../rtc_base:checks", "../rtc_base:checks",
"../rtc_base:copy_on_write_buffer", "../rtc_base:copy_on_write_buffer",
"../rtc_base:event_tracer",
"../rtc_base:location", "../rtc_base:location",
"../rtc_base:logging", "../rtc_base:logging",
"../rtc_base:macromagic", "../rtc_base:macromagic",
@ -467,6 +472,7 @@ rtc_source_set("rtp_transport") {
"../rtc_base", "../rtc_base",
"../rtc_base:checks", "../rtc_base:checks",
"../rtc_base:copy_on_write_buffer", "../rtc_base:copy_on_write_buffer",
"../rtc_base:event_tracer",
"../rtc_base:logging", "../rtc_base:logging",
"../rtc_base:rtc_base_approved", "../rtc_base:rtc_base_approved",
"../rtc_base:socket", "../rtc_base:socket",
@ -633,6 +639,7 @@ rtc_source_set("srtp_transport") {
"../rtc_base:buffer", "../rtc_base:buffer",
"../rtc_base:checks", "../rtc_base:checks",
"../rtc_base:copy_on_write_buffer", "../rtc_base:copy_on_write_buffer",
"../rtc_base:event_tracer",
"../rtc_base:logging", "../rtc_base:logging",
"../rtc_base:rtc_base_approved", "../rtc_base:rtc_base_approved",
"../rtc_base:safe_conversions", "../rtc_base:safe_conversions",
@ -1056,6 +1063,7 @@ rtc_source_set("rtc_stats_collector") {
"../modules/rtp_rtcp:rtp_rtcp_format", "../modules/rtp_rtcp:rtp_rtcp_format",
"../p2p:rtc_p2p", "../p2p:rtc_p2p",
"../rtc_base:checks", "../rtc_base:checks",
"../rtc_base:event_tracer",
"../rtc_base:ip_address", "../rtc_base:ip_address",
"../rtc_base:location", "../rtc_base:location",
"../rtc_base:logging", "../rtc_base:logging",
@ -1140,6 +1148,7 @@ rtc_source_set("sdp_offer_answer") {
"../p2p:rtc_p2p", "../p2p:rtc_p2p",
"../rtc_base", "../rtc_base",
"../rtc_base:checks", "../rtc_base:checks",
"../rtc_base:event_tracer",
"../rtc_base:location", "../rtc_base:location",
"../rtc_base:logging", "../rtc_base:logging",
"../rtc_base:macromagic", "../rtc_base:macromagic",
@ -1240,6 +1249,7 @@ rtc_source_set("peer_connection") {
"../rtc_base", "../rtc_base",
"../rtc_base:checks", "../rtc_base:checks",
"../rtc_base:copy_on_write_buffer", "../rtc_base:copy_on_write_buffer",
"../rtc_base:event_tracer",
"../rtc_base:ip_address", "../rtc_base:ip_address",
"../rtc_base:location", "../rtc_base:location",
"../rtc_base:logging", "../rtc_base:logging",
@ -1327,6 +1337,7 @@ rtc_source_set("stats_collector") {
"../modules/audio_processing:audio_processing_statistics", "../modules/audio_processing:audio_processing_statistics",
"../p2p:rtc_p2p", "../p2p:rtc_p2p",
"../rtc_base:checks", "../rtc_base:checks",
"../rtc_base:event_tracer",
"../rtc_base:ip_address", "../rtc_base:ip_address",
"../rtc_base:location", "../rtc_base:location",
"../rtc_base:logging", "../rtc_base:logging",
@ -1921,6 +1932,7 @@ rtc_library("rtp_sender") {
"../api/crypto:frame_encryptor_interface", "../api/crypto:frame_encryptor_interface",
"../media:rtc_media_base", "../media:rtc_media_base",
"../rtc_base:checks", "../rtc_base:checks",
"../rtc_base:event_tracer",
"../rtc_base:location", "../rtc_base:location",
"../rtc_base:logging", "../rtc_base:logging",
"../rtc_base:macromagic", "../rtc_base:macromagic",
@ -2396,6 +2408,7 @@ if (rtc_include_tests && !build_with_chromium) {
"../rtc_base:byte_buffer", "../rtc_base:byte_buffer",
"../rtc_base:checks", "../rtc_base:checks",
"../rtc_base:copy_on_write_buffer", "../rtc_base:copy_on_write_buffer",
"../rtc_base:event_tracer",
"../rtc_base:gunit_helpers", "../rtc_base:gunit_helpers",
"../rtc_base:ip_address", "../rtc_base:ip_address",
"../rtc_base:location", "../rtc_base:location",

View File

@ -89,6 +89,7 @@ rtc_library("rtc_base_approved") {
":byte_order", ":byte_order",
":checks", ":checks",
":copy_on_write_buffer", ":copy_on_write_buffer",
":event_tracer",
":histogram_percentile_counter", ":histogram_percentile_counter",
":location", ":location",
":logging", ":logging",
@ -137,8 +138,7 @@ rtc_library("rtc_base_approved") {
"byte_buffer.h", # Transitional, use :byte_buffer "byte_buffer.h", # Transitional, use :byte_buffer
"byte_order.h", # Transitional, use :byte_order "byte_order.h", # Transitional, use :byte_order
"copy_on_write_buffer.h", # Transitional, use :copy_on_write_buffer "copy_on_write_buffer.h", # Transitional, use :copy_on_write_buffer
"event_tracer.cc", "event_tracer.h", # Transitional, use :event_tracer
"event_tracer.h",
"location.h", # Transitional, use :location "location.h", # Transitional, use :location
"numerics/histogram_percentile_counter.h", # Transitional, use "numerics/histogram_percentile_counter.h", # Transitional, use
# :histogram_percentile_counter # :histogram_percentile_counter
@ -153,7 +153,7 @@ rtc_library("rtc_base_approved") {
"strong_alias.h", # Transitional, use :strong_alias "strong_alias.h", # Transitional, use :strong_alias
"swap_queue.h", # Transitional, use :swap_queue "swap_queue.h", # Transitional, use :swap_queue
"timestamp_aligner.h", # Transitional, use :timestamp_aligner "timestamp_aligner.h", # Transitional, use :timestamp_aligner
"trace_event.h", "trace_event.h", # Transitional, use :event_tracer
"zero_memory.h", # Transitional, use :zero_memory "zero_memory.h", # Transitional, use :zero_memory
] ]
@ -306,6 +306,29 @@ rtc_library("copy_on_write_buffer") {
] ]
} }
rtc_library("event_tracer") {
visibility = [ "*" ]
sources = [
"event_tracer.cc",
"event_tracer.h",
"trace_event.h",
]
deps = [
":atomicops",
":checks",
":logging",
":macromagic",
":platform_thread",
":platform_thread_types",
":rtc_event",
":timeutils",
"../api:sequence_checker",
"synchronization:mutex",
"system:rtc_export",
]
absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
}
rtc_library("histogram_percentile_counter") { rtc_library("histogram_percentile_counter") {
visibility = [ "*" ] visibility = [ "*" ]
sources = [ sources = [
@ -1025,6 +1048,7 @@ rtc_library("threading") {
":byte_order", ":byte_order",
":checks", ":checks",
":criticalsection", ":criticalsection",
":event_tracer",
":ip_address", ":ip_address",
":location", ":location",
":logging", ":logging",
@ -1658,6 +1682,7 @@ if (rtc_include_tests) {
":copy_on_write_buffer", ":copy_on_write_buffer",
":criticalsection", ":criticalsection",
":divide_round", ":divide_round",
":event_tracer",
":gunit_helpers", ":gunit_helpers",
":histogram_percentile_counter", ":histogram_percentile_counter",
":ip_address", ":ip_address",

View File

@ -1037,6 +1037,7 @@ if (is_ios || is_mac) {
"../pc:webrtc_sdp", "../pc:webrtc_sdp",
"../rtc_base", "../rtc_base",
"../rtc_base:checks", "../rtc_base:checks",
"../rtc_base:event_tracer",
"../rtc_base:logging", "../rtc_base:logging",
"../rtc_base:network_constants", "../rtc_base:network_constants",
"../rtc_base:safe_conversions", "../rtc_base:safe_conversions",

View File

@ -803,6 +803,7 @@ if (current_os == "linux" || is_android) {
"../../pc:webrtc_sdp", "../../pc:webrtc_sdp",
"../../rtc_base", "../../rtc_base",
"../../rtc_base:checks", "../../rtc_base:checks",
"../../rtc_base:event_tracer",
"../../rtc_base:logging", "../../rtc_base:logging",
"../../rtc_base:refcount", "../../rtc_base:refcount",
"../../rtc_base:rtc_base_approved", "../../rtc_base:rtc_base_approved",

View File

@ -454,6 +454,7 @@ if (rtc_include_tests && !build_with_chromium) {
":test_support", ":test_support",
"../rtc_base", "../rtc_base",
"../rtc_base:checks", "../rtc_base:checks",
"../rtc_base:event_tracer",
"../rtc_base:logging", "../rtc_base:logging",
"../rtc_base:rtc_base_approved", "../rtc_base:rtc_base_approved",
"../rtc_base:threading", "../rtc_base:threading",

View File

@ -111,6 +111,7 @@ rtc_library("video") {
"../modules/video_processing", "../modules/video_processing",
"../rtc_base:atomicops", "../rtc_base:atomicops",
"../rtc_base:checks", "../rtc_base:checks",
"../rtc_base:event_tracer",
"../rtc_base:histogram_percentile_counter", "../rtc_base:histogram_percentile_counter",
"../rtc_base:location", "../rtc_base:location",
"../rtc_base:logging", "../rtc_base:logging",
@ -493,6 +494,7 @@ rtc_library("video_stream_encoder_impl") {
"../modules/video_coding/svc:svc_rate_allocator", "../modules/video_coding/svc:svc_rate_allocator",
"../rtc_base:checks", "../rtc_base:checks",
"../rtc_base:criticalsection", "../rtc_base:criticalsection",
"../rtc_base:event_tracer",
"../rtc_base:location", "../rtc_base:location",
"../rtc_base:logging", "../rtc_base:logging",
"../rtc_base:macromagic", "../rtc_base:macromagic",

View File

@ -48,6 +48,7 @@ rtc_library("video_adaptation") {
"../../call/adaptation:resource_adaptation", "../../call/adaptation:resource_adaptation",
"../../modules/video_coding:video_coding_utility", "../../modules/video_coding:video_coding_utility",
"../../rtc_base:checks", "../../rtc_base:checks",
"../../rtc_base:event_tracer",
"../../rtc_base:logging", "../../rtc_base:logging",
"../../rtc_base:macromagic", "../../rtc_base:macromagic",
"../../rtc_base:refcount", "../../rtc_base:refcount",