Преглед изворни кода

Remove commented out legacy code and latest.json, Resolve #458

- Removing the latest.json file from git repository.
- Remove old, legacy commented out code which would save data to latest.json. We're now saving the information to individual results.json files for each framework.
Brittany Mazza пре 10 година
родитељ
комит
24f343bde7
2 измењених фајлова са 1 додато и 21 уклоњено
  1. 1 21
      toolset/benchmark/benchmarker.py
  2. 0 0
      toolset/benchmark/latest.json

+ 1 - 21
toolset/benchmark/benchmarker.py

@@ -631,7 +631,7 @@ class Benchmarker:
         time.sleep(5)
 
         ##########################################################
-        # Save results thus far into toolset/benchmark/latest.json
+        # Save results thus far into the latest results directory
         ##########################################################
 
         out.write(header("Saving results through %s" % test.name))
@@ -944,26 +944,6 @@ class Benchmarker:
       self.timestamp = self.parse
     else:
       self.timestamp = time.strftime("%Y%m%d%H%M%S", time.localtime())
-    
-    # Load the latest data
-    #self.latest = None
-    #try:
-    #  with open('toolset/benchmark/latest.json', 'r') as f:
-    #    # Load json file into config object
-    #    self.latest = json.load(f)
-    #    logging.info("toolset/benchmark/latest.json loaded to self.latest")
-    #    logging.debug("contents of latest.json: " + str(json.dumps(self.latest)))
-    #except IOError:
-    #  logging.warn("IOError on attempting to read toolset/benchmark/latest.json")
-    #
-    #self.results = None
-    #try: 
-    #  if self.latest != None and self.name in self.latest.keys():
-    #    with open(os.path.join(self.result_directory, str(self.latest[self.name]), 'results.json'), 'r') as f:
-    #      # Load json file into config object
-    #      self.results = json.load(f)
-    #except IOError:
-    #  pass
 
     self.results = None
     try:

Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
toolset/benchmark/latest.json


Неке датотеке нису приказане због велике количине промена