Changeset 69115 in webkit
- Timestamp:
- Oct 5, 2010 9:44:38 AM (14 years ago)
- Location:
- trunk/WebKitTools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKitTools/ChangeLog
r69085 r69115 1 2010-10-05 Gabor Rapcsanyi <rgabor@inf.u-szeged.hu> 2 3 Reviewed by Ojan Vafai. 4 5 [NRWT] Rename current_dir to current_group because it's not a directory 6 https://bugs.webkit.org/show_bug.cgi?id=47169 7 8 * Scripts/webkitpy/layout_tests/layout_package/dump_render_tree_thread.py: 9 * Scripts/webkitpy/layout_tests/run_webkit_tests.py: 10 1 11 2010-10-04 Dirk Pranke <dpranke@chromium.org> 2 12 -
trunk/WebKitTools/Scripts/webkitpy/layout_tests/layout_package/dump_render_tree_thread.py
r67905 r69115 272 272 self._test_args = test_args 273 273 self._driver = None 274 self._ directory_timing_stats = {}274 self._test_group_timing_stats = {} 275 275 self._test_results = [] 276 276 self._num_tests = 0 … … 278 278 self._stop_time = 0 279 279 280 # Current directoryof tests we're running.281 self._current_ dir= None282 # Number of tests in self._current_ dir.283 self._num_tests_in_current_ dir= None284 # Time at which we started running tests from self._current_ dir.285 self._current_ dir_start_time = None286 287 def get_ directory_timing_stats(self):288 """Returns a dictionary mapping test directoryto a tuple of289 (number of tests in that directory, time to run the tests)"""290 return self._ directory_timing_stats280 # Current group of tests we're running. 281 self._current_group = None 282 # Number of tests in self._current_group. 283 self._num_tests_in_current_group = None 284 # Time at which we started running tests from self._current_group. 285 self._current_group_start_time = None 286 287 def get_test_group_timing_stats(self): 288 """Returns a dictionary mapping test group to a tuple of 289 (number of tests in that group, time to run the tests)""" 290 return self._test_group_timing_stats 291 291 292 292 def get_test_results(self): … … 360 360 361 361 if len(self._filename_list) is 0: 362 if self._current_ diris not None:363 self._ directory_timing_stats[self._current_dir] = \364 (self._num_tests_in_current_ dir,365 time.time() - self._current_ dir_start_time)362 if self._current_group is not None: 363 self._test_group_timing_stats[self._current_group] = \ 364 (self._num_tests_in_current_group, 365 time.time() - self._current_group_start_time) 366 366 367 367 try: 368 self._current_ dir, self._filename_list = \368 self._current_group, self._filename_list = \ 369 369 self._filename_list_queue.get_nowait() 370 370 except Queue.Empty: … … 373 373 return 374 374 375 self._num_tests_in_current_ dir= len(self._filename_list)376 self._current_ dir_start_time = time.time()375 self._num_tests_in_current_group = len(self._filename_list) 376 self._current_group_start_time = time.time() 377 377 378 378 test_info = self._filename_list.pop() -
trunk/WebKitTools/Scripts/webkitpy/layout_tests/run_webkit_tests.py
r69074 r69115 696 696 'num_tests': thread.get_num_tests(), 697 697 'total_time': thread.get_total_time()}) 698 test_timings.update(thread.get_ directory_timing_stats())698 test_timings.update(thread.get_test_group_timing_stats()) 699 699 individual_test_timings.extend(thread.get_test_results()) 700 700
Note: See TracChangeset
for help on using the changeset viewer.