From 97b16ada2b710cfe88c3bc6bf9e0dc42a943fca5 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Sun, 18 Jul 2021 21:13:43 +0200 Subject: exp: Add metrics and prototype update commands This adds a couple of commands to start/stop metrics exporter, set link rate on virtual wall, and updating the prototype from git, which is useful in interactive mode. --- rumba/storyboard.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'rumba/storyboard.py') diff --git a/rumba/storyboard.py b/rumba/storyboard.py index 6d9739c..59fbf6f 100644 --- a/rumba/storyboard.py +++ b/rumba/storyboard.py @@ -754,6 +754,20 @@ class StoryBoard(_SBEntity): command = [command] _node.execute_commands(command) + def start_metrics_exporter(self, nodes=None, interval=100): + """ + Storyboard wrapper to start experiment metrics + """ + + self.experiment.start_metrics_exporter(nodes, interval=interval) + + def stop_metrics_exporter(self, nodes=None): + """ + storyboard wrapper to stop experiment metrics + """ + + self.experiment.stop_metrics_exporter(nodes=nodes) + def add_event(self, event): """ Adds an event to this script. -- cgit v1.2.3