Browse Source

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 years ago
parent
commit
24f343bde7
2 changed files with 1 additions and 21 deletions
  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:

File diff suppressed because it is too large
+ 0 - 0
toolset/benchmark/latest.json


Some files were not shown because too many files changed in this diff