summaryrefslogtreecommitdiff
path: root/seivot
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2011-05-14 20:14:27 +0100
committerLars Wirzenius <liw@liw.fi>2011-05-14 20:14:27 +0100
commitbc160f2798302b0f0612eb678c8e72aa4079be04 (patch)
treeb39c6f28953e47d974213743e3966bbebd66a7d5 /seivot
parent5f4906b6ce731fe18eca5567fd919202c5eac3e4 (diff)
downloadseivot-bc160f2798302b0f0612eb678c8e72aa4079be04.tar.gz
Only do cache dropping if requested.
Diffstat (limited to 'seivot')
-rwxr-xr-xseivot3
1 files changed, 2 insertions, 1 deletions
diff --git a/seivot b/seivot
index f619e92..2f8f898 100755
--- a/seivot
+++ b/seivot
@@ -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)