def __init__(self, print_levels=4): Timer.__init__(self, print_levels) from _gpaw import craypat_region_begin, craypat_region_end self.craypat_region_begin = craypat_region_begin self.craypat_region_end = craypat_region_end self.regions = {} self.region_id = 5 # leave room for regions in C
def __init__(self): Timer.__init__(self) import pytau self.pytau = pytau self.tau_timers = {} pytau.setNode(mpi.rank) self.tau_timers[self.top_level] = pytau.profileTimer(self.top_level) pytau.start(self.tau_timers[self.top_level])
def __init__(self, out=sys.stdout, name=None, write_as_master_only=True): Timer.__init__(self) if name is None: name = '<%s>' % sys._getframe(1).f_code.co_name self.name = name self.out = out self.alwaysprint = not write_as_master_only self.now = 'temporary now' self.start(self.now)
def __init__(self, print_levels=1000, comm=mpi.world, txt=sys.stdout): Timer.__init__(self, print_levels) ndigits = 1 + int(math.log10(comm.size)) self.srank = '%0*d' % (ndigits, comm.rank) self.txt = txt
def __init__(self): Timer.__init__(self) from _gpaw import hpm_start, hpm_stop self.hpm_start = hpm_start self.hpm_stop = hpm_stop hpm_start(self.top_level)