Add timing reports for both simulation and shm
This involves a major refactor of how event loops are put together.
Lots of functionality for timing reports is in the base event loop
class (though hidden as much as possible to avoid cluttering the
interface). More functionality is now in the base class, with simpler
and more consistent subclasses.
Change-Id: I163ffb8d1b0e29a0231b54e205c2d7c5241d662b
diff --git a/aos/events/shm_event_loop_test.cc b/aos/events/shm_event_loop_test.cc
index ba0b80d..1bbca2c 100644
--- a/aos/events/shm_event_loop_test.cc
+++ b/aos/events/shm_event_loop_test.cc
@@ -30,6 +30,7 @@
unlink((FLAGS_shm_base + "/test1/aos.TestMessage.v0").c_str());
unlink((FLAGS_shm_base + "/test2/aos.TestMessage.v0").c_str());
unlink((FLAGS_shm_base + "/test2/aos.TestMessage.v0").c_str());
+ unlink((FLAGS_shm_base + "/aos/aos.timing.Report.v0").c_str());
}
::std::unique_ptr<EventLoop> Make(std::string_view name) override {
@@ -171,5 +172,7 @@
EXPECT_EQ(times.size(), 2u);
}
+// TODO(austin): Test that missing a deadline with a timer recovers as expected.
+
} // namespace testing
} // namespace aos