diff options
Diffstat (limited to 'third_party/libwebrtc/rtc_tools/rtc_event_log_visualizer')
5 files changed, 1 insertions, 171 deletions
diff --git a/third_party/libwebrtc/rtc_tools/rtc_event_log_visualizer/plot_base.h b/third_party/libwebrtc/rtc_tools/rtc_event_log_visualizer/plot_base.h index e970a6eeb8..aacffa4d59 100644 --- a/third_party/libwebrtc/rtc_tools/rtc_event_log_visualizer/plot_base.h +++ b/third_party/libwebrtc/rtc_tools/rtc_event_log_visualizer/plot_base.h @@ -19,11 +19,9 @@ #include "absl/base/attributes.h" #include "absl/strings/string_view.h" #include "absl/types/optional.h" -#include "rtc_base/ignore_wundef.h" -RTC_PUSH_IGNORING_WUNDEF() +// Generated at build-time by the protobuf compiler. #include "rtc_tools/rtc_event_log_visualizer/proto/chart.pb.h" -RTC_POP_IGNORING_WUNDEF() namespace webrtc { diff --git a/third_party/libwebrtc/rtc_tools/rtc_event_log_visualizer/plot_protobuf.cc b/third_party/libwebrtc/rtc_tools/rtc_event_log_visualizer/plot_protobuf.cc deleted file mode 100644 index 0b7a6f28ac..0000000000 --- a/third_party/libwebrtc/rtc_tools/rtc_event_log_visualizer/plot_protobuf.cc +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) 2016 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_tools/rtc_event_log_visualizer/plot_protobuf.h" - -#include <stddef.h> - -#include <iostream> -#include <memory> -#include <vector> - -namespace webrtc { - -ProtobufPlot::ProtobufPlot() {} - -ProtobufPlot::~ProtobufPlot() {} - -void ProtobufPlot::Draw() {} - -ProtobufPlotCollection::ProtobufPlotCollection() {} - -ProtobufPlotCollection::~ProtobufPlotCollection() {} - -void ProtobufPlotCollection::Draw() { - webrtc::analytics::ChartCollection collection; - ExportProtobuf(&collection); - std::cout << collection.SerializeAsString(); -} - -Plot* ProtobufPlotCollection::AppendNewPlot() { - Plot* plot = new ProtobufPlot(); - plots_.push_back(std::unique_ptr<Plot>(plot)); - return plot; -} - -} // namespace webrtc diff --git a/third_party/libwebrtc/rtc_tools/rtc_event_log_visualizer/plot_protobuf.h b/third_party/libwebrtc/rtc_tools/rtc_event_log_visualizer/plot_protobuf.h deleted file mode 100644 index fbe68853a3..0000000000 --- a/third_party/libwebrtc/rtc_tools/rtc_event_log_visualizer/plot_protobuf.h +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) 2016 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. - */ -#ifndef RTC_TOOLS_RTC_EVENT_LOG_VISUALIZER_PLOT_PROTOBUF_H_ -#define RTC_TOOLS_RTC_EVENT_LOG_VISUALIZER_PLOT_PROTOBUF_H_ - -#include "absl/base/attributes.h" -#include "rtc_base/ignore_wundef.h" -RTC_PUSH_IGNORING_WUNDEF() -#include "rtc_tools/rtc_event_log_visualizer/proto/chart.pb.h" -RTC_POP_IGNORING_WUNDEF() -#include "rtc_tools/rtc_event_log_visualizer/plot_base.h" - -namespace webrtc { - -class ProtobufPlot final : public Plot { - public: - ProtobufPlot(); - ~ProtobufPlot() override; - void Draw() override; -}; - -class ABSL_DEPRECATED("Use PlotCollection and ExportProtobuf() instead") - ProtobufPlotCollection final : public PlotCollection { - public: - ProtobufPlotCollection(); - ~ProtobufPlotCollection() override; - void Draw() override; - Plot* AppendNewPlot() override; -}; - -} // namespace webrtc - -#endif // RTC_TOOLS_RTC_EVENT_LOG_VISUALIZER_PLOT_PROTOBUF_H_ diff --git a/third_party/libwebrtc/rtc_tools/rtc_event_log_visualizer/plot_python.cc b/third_party/libwebrtc/rtc_tools/rtc_event_log_visualizer/plot_python.cc deleted file mode 100644 index b3708110df..0000000000 --- a/third_party/libwebrtc/rtc_tools/rtc_event_log_visualizer/plot_python.cc +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) 2016 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_tools/rtc_event_log_visualizer/plot_python.h" - -#include <stdio.h> - -#include <memory> -#include <string> -#include <vector> - -#include "rtc_base/checks.h" - -namespace webrtc { - -PythonPlot::PythonPlot() {} - -PythonPlot::~PythonPlot() {} - -void PythonPlot::Draw() { - PrintPythonCode(); -} - -PythonPlotCollection::PythonPlotCollection(bool shared_xaxis) - : shared_xaxis_(shared_xaxis) {} - -PythonPlotCollection::~PythonPlotCollection() {} - -void PythonPlotCollection::Draw() { - PrintPythonCode(shared_xaxis_); -} - -Plot* PythonPlotCollection::AppendNewPlot() { - Plot* plot = new PythonPlot(); - plots_.push_back(std::unique_ptr<Plot>(plot)); - return plot; -} - -} // namespace webrtc diff --git a/third_party/libwebrtc/rtc_tools/rtc_event_log_visualizer/plot_python.h b/third_party/libwebrtc/rtc_tools/rtc_event_log_visualizer/plot_python.h deleted file mode 100644 index 6acc436d71..0000000000 --- a/third_party/libwebrtc/rtc_tools/rtc_event_log_visualizer/plot_python.h +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) 2016 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. - */ -#ifndef RTC_TOOLS_RTC_EVENT_LOG_VISUALIZER_PLOT_PYTHON_H_ -#define RTC_TOOLS_RTC_EVENT_LOG_VISUALIZER_PLOT_PYTHON_H_ - -#include "absl/base/attributes.h" -#include "rtc_tools/rtc_event_log_visualizer/plot_base.h" - -namespace webrtc { - -class PythonPlot final : public Plot { - public: - PythonPlot(); - ~PythonPlot() override; - void Draw() override; -}; - -class ABSL_DEPRECATED("Use PlotCollection and PrintPythonCode() instead.") - PythonPlotCollection final : public PlotCollection { - public: - explicit PythonPlotCollection(bool shared_xaxis = false); - ~PythonPlotCollection() override; - void Draw() override; - Plot* AppendNewPlot() override; - - private: - bool shared_xaxis_; -}; - -} // namespace webrtc - -#endif // RTC_TOOLS_RTC_EVENT_LOG_VISUALIZER_PLOT_PYTHON_H_ |