Ejemplo n.º 1
0
  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)
Ejemplo n.º 2
0
    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')
Ejemplo n.º 3
0
  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)