Esempio n. 1
0
 def __init__(self, owner, jmeter):
     AbstractReader.__init__(self, owner)
     self.jmeter = jmeter
     self.results = None
     self.partial_buffer = ''
     self.buffer_size = 3
     self.use_argentum = False
Esempio n. 2
0
 def __init__(self, owner, jmeter):
     AbstractReader.__init__(self, owner)
     self.jmeter = jmeter
     self.results = None
     self.partial_buffer = ''
     self.buffer_size = 3
     self.use_argentum = False
Esempio n. 3
0
 def __init__(self, owner, phantom):
     AbstractReader.__init__(self, owner)
     self.phantom = phantom
     self.phout_file = None
     self.phout = None
     self.stat = None
     self.stat_data = {}
     self.steps = []
     self.first_request_time = sys.maxint
     self.partial_buffer = ''
     self.stat_read_buffer = ''
     self.pending_second_data_queue = []
     self.last_sample_time = 0
     self.read_lines_count = 0
     self.buffered_seconds = 3
     self.enum_ammo = self.phantom.enum_ammo
Esempio n. 4
0
 def __init__(self, owner, phantom):
     AbstractReader.__init__(self, owner)
     self.phantom = phantom
     self.phout_file = None
     self.phout = None
     self.stat = None
     self.stat_data = {}
     self.steps = []
     self.first_request_time = sys.maxint
     self.partial_buffer = ''
     self.stat_read_buffer = ''
     self.pending_second_data_queue = []
     self.last_sample_time = 0
     self.read_lines_count = 0
     self.buffered_seconds = 3
     self.enum_ammo = self.phantom.enum_ammo
Esempio n. 5
0
 def __aggregate_next_second(self):
     """ calls aggregator if there is data """
     parsed_sec = AbstractReader.pop_second(self)
     if parsed_sec:
         timestamp = int(time.mktime(parsed_sec.time.timetuple()))
         if timestamp in self.stat_data.keys():
             parsed_sec.overall.active_threads=self.stat_data[timestamp]
             for marker in parsed_sec.cases:
                 parsed_sec.cases[marker].active_threads=self.stat_data[timestamp]
             del self.stat_data[timestamp]
         self.pending_second_data_queue.append(parsed_sec)
     else:
         self.log.debug("No new seconds present")
Esempio n. 6
0
 def __aggregate_next_second(self):
     """ calls aggregator if there is data """
     parsed_sec = AbstractReader.pop_second(self)
     if parsed_sec:
         timestamp = int(time.mktime(parsed_sec.time.timetuple()))
         if timestamp in self.stat_data.keys():
             parsed_sec.overall.active_threads=self.stat_data[timestamp]
             for marker in parsed_sec.cases:
                 parsed_sec.cases[marker].active_threads=self.stat_data[timestamp]
             del self.stat_data[timestamp]
         self.pending_second_data_queue.append(parsed_sec)
     else:
         self.log.debug("No new seconds present")
Esempio n. 7
0
 def __init__(self, aggregator, bfg, result_cache_size=5):
     AbstractReader.__init__(self, aggregator)
     self.bfg = bfg
     self.result_cache_size = result_cache_size
     self.steps = map(list, si.status.get_info().steps)
Esempio n. 8
0
 def __init__(self, owner, vegeta):
     AbstractReader.__init__(self, owner)
     self._vegeta_file = vegeta._output_file_path
     self._vegetaout = None
     self._vegeta = vegeta