From 861af45aac734d6ef92b0eaae3d6bcbe62aa94e2 Mon Sep 17 00:00:00 2001 From: Sander Vrijders Date: Tue, 26 Dec 2017 16:58:48 +0100 Subject: 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 --- rumba/prototypes/irati.py | 4 ++-- rumba/prototypes/ouroboros.py | 4 ++-- rumba/prototypes/rlite.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'rumba/prototypes') 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") -- cgit v1.2.3