def __init__(self, counterFilter): """ Constructs an instance of collector :param counterFilter: a filter to exclude compromised or unused counters :type counterFilter: xpedite.filter.TrivialCounterFilter """ Extractor.__init__(self, counterFilter)
def __init__(self, counterFilter): """ Constructs an instance of collector :param counterFilter: a filter to exclude compromised or unused counters :type counterFilter: xpedite.filter.TrivialCounterFilter """ Extractor.__init__(self, counterFilter) self.samplesFileWildcard = 'samples-[0-9]*.csv' self.samplesFilePattern = re.compile(r'samples-(\d+)\.csv')
def gatherCounters(self, app, loader): """ Gathers time and pmu counters from sample files for a profile session :param app: Handle to the instance of the xpedite app :param loader: Loader to build transactions out of the counters """ if app.dataSource: return self.loadDataSource(app.dataSource, loader) return Extractor.gatherCounters(self, app, loader)