aboutsummaryrefslogtreecommitdiff
path: root/rumba/prototypes
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@ugent.be>2017-12-26 16:58:48 +0100
committerSander Vrijders <sander.vrijders@ugent.be>2017-12-26 20:22:58 +0100
commit861af45aac734d6ef92b0eaae3d6bcbe62aa94e2 (patch)
treeec1c2ca776d3f59eba320226c13f012f38b5ba04 /rumba/prototypes
parent66f141f3b8dece28d7fe90b5c719b3781d38da9f (diff)
downloadrumba-861af45aac734d6ef92b0eaae3d6bcbe62aa94e2.tar.gz
rumba-861af45aac734d6ef92b0eaae3d6bcbe62aa94e2.zip
model: Add timings for every public Experiment call
This measures the time for every public function of the Experiment class and logs them. Fixes #40
Diffstat (limited to 'rumba/prototypes')
-rw-r--r--rumba/prototypes/irati.py4
-rw-r--r--rumba/prototypes/ouroboros.py4
-rw-r--r--rumba/prototypes/rlite.py4
3 files changed, 6 insertions, 6 deletions
diff --git a/rumba/prototypes/irati.py b/rumba/prototypes/irati.py
index 82e56b9..e8da727 100644
--- a/rumba/prototypes/irati.py
+++ b/rumba/prototypes/irati.py
@@ -115,12 +115,12 @@ class Experiment(mod.Experiment):
self.process_node(node)
self.enroll_nodes()
- def install_prototype(self):
+ def _install_prototype(self):
logger.info("installing IRATI on all the nodes")
self.install()
logger.info("installation complete")
- def bootstrap_prototype(self):
+ def _bootstrap_prototype(self):
logger.info("setting up")
self.conf_files = self.write_conf()
logger.info("configuration files generated for all nodes")
diff --git a/rumba/prototypes/ouroboros.py b/rumba/prototypes/ouroboros.py
index 055ed43..6d5d184 100644
--- a/rumba/prototypes/ouroboros.py
+++ b/rumba/prototypes/ouroboros.py
@@ -153,12 +153,12 @@ class Experiment(mod.Experiment):
ipcp.node.ssh_config,
cmd, time_out=None)
- def install_prototype(self):
+ def _install_prototype(self):
logger.info("Installing Ouroboros...")
self.install_ouroboros()
logger.info("Installed on all nodes...")
- def bootstrap_prototype(self):
+ def _bootstrap_prototype(self):
logger.info("Starting IRMd on all nodes...")
self.setup_ouroboros()
logger.info("Creating IPCPs")
diff --git a/rumba/prototypes/rlite.py b/rumba/prototypes/rlite.py
index 0579e3a..d55b253 100644
--- a/rumba/prototypes/rlite.py
+++ b/rumba/prototypes/rlite.py
@@ -140,7 +140,7 @@ class Experiment(mod.Experiment):
self.execute_commands(e['enrollee'].node, cmds)
time.sleep(1)
- def install_prototype(self):
+ def _install_prototype(self):
logger.info("installing rlite on all nodes")
packages = ["g++", "gcc", "cmake", "linux-headers-$(uname -r)",
@@ -163,7 +163,7 @@ class Experiment(mod.Experiment):
m_processing.call_in_parallel(names, args, executors)
logger.info("installation complete")
- def bootstrap_prototype(self):
+ def _bootstrap_prototype(self):
logger.info("setting up")
self.init_nodes()
logger.info("software initialized on all nodes")