Move over to ABSL logging and flags.
Removes gperftools too since that wants gflags.
Here come the fireworks.
Change-Id: I79cb7bcf60f1047fbfa28bfffc21a0fd692e4b1c
Signed-off-by: Austin Schuh <austin.linux@gmail.com>
diff --git a/y2019/control_loops/drivetrain/localizer_test.cc b/y2019/control_loops/drivetrain/localizer_test.cc
index 278b958a..b92c466 100644
--- a/y2019/control_loops/drivetrain/localizer_test.cc
+++ b/y2019/control_loops/drivetrain/localizer_test.cc
@@ -3,7 +3,7 @@
#include <queue>
#include <random>
-#include "gflags/gflags.h"
+#include "absl/flags/flag.h"
#include "aos/testing/random_seed.h"
#include "aos/testing/test_shm.h"
@@ -17,7 +17,7 @@
#include "y2019/constants.h"
#include "y2019/control_loops/drivetrain/drivetrain_base.h"
-DEFINE_bool(plot, false, "If true, plot");
+ABSL_FLAG(bool, plot, false, "If true, plot");
namespace y2019::control_loops::testing {
@@ -210,7 +210,7 @@
printf("Each iteration of the simulation took on average %f seconds.\n",
avg_time_.count());
#if defined(SUPPORT_PLOT)
- if (FLAGS_plot) {
+ if (absl::GetFlag(FLAGS_plot)) {
matplotlibcpp::figure();
matplotlibcpp::plot(simulation_t_, simulation_vl_, {{"label", "Vl"}});
matplotlibcpp::plot(simulation_t_, simulation_vr_, {{"label", "Vr"}});