Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/p/g/PGDB-HEAD/pgdb/src/comm.py   PGDB(Download)
    def _enable_mrnet_perf_data(self):
        """Enable MRNet performance data."""
        if gdbconf.mrnet_collect_perf_data:
            self.mrnet.enable_PerformanceData(MRN.PERFDATA_MET_NUM_BYTES,
                                              MRN.PERFDATA_CTX_SEND)
            self.mrnet.enable_PerformanceData(MRN.PERFDATA_MET_NUM_PKTS,
                                              MRN.PERFDATA_CTX_SEND)
    def _disable_mrnet_perf_data(self):
        """Disable MRNet performance data."""
        if gdbconf.mrnet_collect_perf_data:
            self.mrnet.disable_PerformanceData(MRN.PERFDATA_MET_NUM_BYTES,
                                               MRN.PERFDATA_CTX_SEND)
            self.mrnet.disable_PerformanceData(MRN.PERFDATA_MET_NUM_PKTS,
                                               MRN.PERFDATA_CTX_SEND)
    def _log_mrnet_perf_data(self):
        """Log MRNet performance data."""
        if gdbconf.mrnet_collect_perf_data:
            self.mrnet.print_PerformanceData(MRN.PERFDATA_MET_NUM_BYTES,
                                             MRN.PERFDATA_CTX_SEND)