aboutsummaryrefslogtreecommitdiff
path: root/rtc_tools/rtc_event_log_visualizer/plot_base.h
diff options
context:
space:
mode:
Diffstat (limited to 'rtc_tools/rtc_event_log_visualizer/plot_base.h')
-rw-r--r--rtc_tools/rtc_event_log_visualizer/plot_base.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/rtc_tools/rtc_event_log_visualizer/plot_base.h b/rtc_tools/rtc_event_log_visualizer/plot_base.h
index bc753e320c..aacffa4d59 100644
--- a/rtc_tools/rtc_event_log_visualizer/plot_base.h
+++ b/rtc_tools/rtc_event_log_visualizer/plot_base.h
@@ -10,6 +10,7 @@
#ifndef RTC_TOOLS_RTC_EVENT_LOG_VISUALIZER_PLOT_BASE_H_
#define RTC_TOOLS_RTC_EVENT_LOG_VISUALIZER_PLOT_BASE_H_
+#include <cstdint>
#include <memory>
#include <string>
#include <utility>
@@ -18,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 {
@@ -156,6 +155,7 @@ class Plot {
// the title might change in future releases whereas the ID should be stable
// over time.
void SetId(const std::string& id);
+ void SetId(absl::string_view id);
// Add a new TimeSeries to the plot.
void AppendTimeSeries(TimeSeries&& time_series);
@@ -197,6 +197,8 @@ class PlotCollection {
virtual Plot* AppendNewPlot();
+ virtual Plot* AppendNewPlot(absl::string_view);
+
void SetCallTimeToUtcOffsetMs(int64_t calltime_to_utc_ms) {
calltime_to_utc_ms_ = calltime_to_utc_ms;
}