Send timing report when sending data in config validator
SkipTimingReport() is called by default in simulation_logger. We want
to send timing report while sending data on channels in
config_validator_lib so add flexibility for this.
Change-Id: I3193fad4725d67297175956311b79063d2771872
Signed-off-by: James Kuszmaul <james.kuszmaul@bluerivertech.com>
diff --git a/aos/util/simulation_logger.h b/aos/util/simulation_logger.h
index f431b4c..af43d02 100644
--- a/aos/util/simulation_logger.h
+++ b/aos/util/simulation_logger.h
@@ -9,7 +9,8 @@
class LoggerState {
public:
LoggerState(aos::SimulatedEventLoopFactory *factory, const aos::Node *node,
- std::string_view output_folder);
+ std::string_view output_folder,
+ bool do_skip_timing_report = true);
private:
std::unique_ptr<aos::EventLoop> event_loop_;
@@ -23,11 +24,12 @@
std::vector<std::unique_ptr<LoggerState>> MakeLoggersForNodes(
aos::SimulatedEventLoopFactory *factory,
const std::vector<std::string> &nodes_to_log,
- std::string_view output_folder);
+ std::string_view output_folder, bool do_skip_timing_report = true);
// Creates loggers for all of the nodes.
std::vector<std::unique_ptr<LoggerState>> MakeLoggersForAllNodes(
- aos::SimulatedEventLoopFactory *factory, std::string_view output_folder);
+ aos::SimulatedEventLoopFactory *factory, std::string_view output_folder,
+ bool do_skip_timing_report = true);
} // namespace aos::util
#endif // AOS_UTIL_SIMULATION_LOGGER_H_