Commit 23bab00b authored by Christian Dietrich's avatar Christian Dietrich
Browse files

experiments: add semi-colon to newline testcase

ccache does not redo the compilation, if only a newline was added. But
a single semi-colon does do the trick.
parent 1b8291b8
Pipeline #2992 passed with stage
in 0 seconds
......@@ -75,7 +75,7 @@ class IncrementalCompilation(Experiment):
os.utime(path, None)
with open(path, "a") as fd:
def rebuild(self, path, cause):
info = {'filename': cause}
......@@ -20,7 +20,6 @@ import matplotlib.pyplot as plt
import matplotlib.patches as mpatches
from incremental_rebuild import IncrementalCompilation
from lib import read_hash_directory
class IncrementalCompilationPlots(Experiment):
inputs = {'results': List(IncrementalCompilation(), [])}
......@@ -34,21 +33,13 @@ class IncrementalCompilationPlots(Experiment):
return "%s-%s" %(self.title, self.project_name)
def run(self):
names = set([x.project_name() for x in self.results])
assert len(names) == 1, "Different projects are mixed"
self.project_name = list(names)[0]
for result in self.results:
self.project_name = ""
for result in sorted(self.results, key=lambda x: (x.variant_name())):
records = eval(result.stats.value)
print, len(records['builds'])
build_times_all = []
build_times_headers = []
build_times_sources = []
#hash_info = read_hash_directory(result.hashes.path)
for build in records['builds']:
t = build['build-time'] / 1e9
......@@ -61,11 +52,13 @@ class IncrementalCompilationPlots(Experiment):
if "alltypes" in build['filename']:
print(result.variant_name(), t)
#if "alltypes" in build['filename']:
# print(build['filename'], t, build['compiler-calls'])
#print(build['id'])[result.variant_name(), 'rebuild', 'avg'],
if build_times_sources:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment