aboutsummaryrefslogtreecommitdiff
path: root/rumba/storyboard.py
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri@ouroboros.rocks>2021-07-18 21:13:43 +0200
committerDimitri Staessens <dimitri@ouroboros.rocks>2021-07-18 21:17:41 +0200
commit97b16ada2b710cfe88c3bc6bf9e0dc42a943fca5 (patch)
treede834c48b6b777fcd1677648956f45db56a4f1c6 /rumba/storyboard.py
parentaf27377ca752b6ef0c7bdb917a4339c959b00805 (diff)
downloadrumba-97b16ada2b710cfe88c3bc6bf9e0dc42a943fca5.tar.gz
rumba-97b16ada2b710cfe88c3bc6bf9e0dc42a943fca5.zip
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.
Diffstat (limited to 'rumba/storyboard.py')
-rw-r--r--rumba/storyboard.py14
1 files changed, 14 insertions, 0 deletions
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.