Ejemplo n.º 1
0
    def book(self):
        """
        book all algorithm histograms via call to steering.book
        """
        self.__logger.info("Book")
        self.gate.hbook.book("artemis", "counts", range(10))
        bins = [x for x in range_positive(0.0, 10.0, 0.1)]

        # Payload and block distributions
        self.gate.hbook.book("artemis", "payload", bins, "MB", timer=True)
        self.gate.hbook.book("artemis", "nblocks", range(100), "n", timer=True)
        self.gate.hbook.book("artemis", "blocksize", bins, "MB", timer=True)

        # Timing plots
        bins = [x for x in range_positive(0.0, 1000.0, 2.0)]
        self.gate.hbook.book("artemis",
                             "time.prepblks",
                             bins,
                             "ms",
                             timer=True)
        self.gate.hbook.book("artemis",
                             "time.prepschema",
                             bins,
                             "ms",
                             timer=True)
        self.gate.hbook.book("artemis", "time.execute", bins, "ms", timer=True)
        self.gate.hbook.book("artemis", "time.collect", bins, "ms", timer=True)
        self.gate.hbook.book("artemis", "time.steer", bins, "ms", timer=True)

        try:
            self.steer.book()
        except Exception:
            self.__logger.error("Cannot book Steering")
            raise
Ejemplo n.º 2
0
 def book(self):
     self.__logger.info("Book")
     bins = [x for x in range_positive(0.0, 100.0, 2.0)]
     self.gate.hbook.book(self.name,
                          "time.filtercol",
                          bins,
                          "ms",
                          timer=True)
Ejemplo n.º 3
0
 def book(self):
     self.__logger.info("Book")
     bins = [x for x in range_positive(0.0, 100.0, 2.0)]
     self.gate.hbook.book(self.name, "time.pyparse", bins, "ms", timer=True)
     self.gate.hbook.book(self.name,
                          "time.legacydataparse",
                          bins,
                          "ms",
                          timer=True)
Ejemplo n.º 4
0
    def book(self):
        """
        book method calls book on all algorithms in the menu
        """
        self.__logger.info("Book")

        for key in self._algo_instances:
            algo = self._algo_instances[key]
            self.__logger.info("Book %s", algo.name)
            bins = [x for x in range_positive(0.0, 100.0, 2.0)]
            try:
                self.gate.hbook.book(self.name,
                                     "time." + algo.name,
                                     bins,
                                     "ms",
                                     timer=True)
            except Exception:
                self.__logger.error("Cannot book steering")
                raise
            try:
                algo.book()
            except Exception:
                self.__logger.error("Cannot book %s" % algo.name)
        self.__logger.info("HBook keys %s", self.gate.hbook.keys())