diff options
author | Lars Wirzenius <liw@liw.fi> | 2011-05-14 20:14:27 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2011-05-14 20:14:27 +0100 |
commit | bc160f2798302b0f0612eb678c8e72aa4079be04 (patch) | |
tree | b39c6f28953e47d974213743e3966bbebd66a7d5 /seivot | |
parent | 5f4906b6ce731fe18eca5567fd919202c5eac3e4 (diff) | |
download | seivot-bc160f2798302b0f0612eb678c8e72aa4079be04.tar.gz |
Only do cache dropping if requested.
Diffstat (limited to 'seivot')
-rwxr-xr-x | seivot | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -366,7 +366,8 @@ class Seivot(cliapp.Application): def measure(self, func, nth_gen, new_data, **kwargs): logging.info('Measuring %s gen %d' % (func.__name__, nth_gen)) - drop_caches() + if self.settings['drop-caches']: + drop_caches() measurement = func(nth_gen, **kwargs) measurement.new_data = new_data self.report.add_measurement(func.__name__, nth_gen, measurement) |