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/event_loop_param_test.h b/aos/events/event_loop_param_test.h
index 8a8f33a..b69f28a 100644
--- a/aos/events/event_loop_param_test.h
+++ b/aos/events/event_loop_param_test.h
@@ -18,6 +18,10 @@
: flatbuffer_(JsonToFlatbuffer("{\n"
" \"channels\": [ \n"
" {\n"
+ " \"name\": \"/aos\",\n"
+ " \"type\": \"aos.timing.Report\"\n"
+ " },\n"
+ " {\n"
" \"name\": \"/test\",\n"
" \"type\": \"aos.TestMessage\"\n"
" },\n"
@@ -88,6 +92,7 @@
auto end_timer = loop->AddTimer([this]() { this->Exit(); });
end_timer->Setup(loop->monotonic_now() +
::std::chrono::milliseconds(duration));
+ end_timer->set_name("end");
}
// You can implement all the usual fixture class members here.