コード例 #1
0
ファイル: collector.py プロジェクト: morganstanley/Xpedite
  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)
コード例 #2
0
ファイル: collector.py プロジェクト: xwlan/Xpedite
    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')
コード例 #3
0
ファイル: collector.py プロジェクト: morganstanley/Xpedite
  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)