Create tool to print statistics about the file size usage of an RTC event log.
BUG=webrtc:7502
Review-Url: https://codereview.webrtc.org/2717553004
Cr-Commit-Position: refs/heads/master@{#17932}
diff --git a/webrtc/logging/BUILD.gn b/webrtc/logging/BUILD.gn
index 6032ba6..ffc64a3 100644
--- a/webrtc/logging/BUILD.gn
+++ b/webrtc/logging/BUILD.gn
@@ -175,4 +175,23 @@
}
}
}
+ if (rtc_include_tests) {
+ rtc_executable("rtc_event_log2stats") {
+ testonly = true
+ sources = [
+ "rtc_event_log/rtc_event_log2stats.cc",
+ ]
+ deps = [
+ ":rtc_event_log_api",
+ ":rtc_event_log_impl",
+ ":rtc_event_log_proto",
+ "../base:rtc_base_approved",
+ "//third_party/gflags",
+ ]
+ if (!build_with_chromium && is_clang) {
+ # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
+ suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
+ }
+ }
+ }
}