summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2013-08-22 17:39:11 +0100
committerJosé Fonseca <jfonseca@vmware.com>2013-08-22 17:39:11 +0100
commit0ef175f3dc9fe5453702e7ccf45f408b05174f9d (patch)
tree33763d76df9a03d543bfa1ec197832d2715a5460 /scripts
parent1e087c7e8518f0f1a99d9a7abc941019ee65af74 (diff)
retracediff: Only diff state if specified by command line option.
As it can be very slow.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/retracediff.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/retracediff.py b/scripts/retracediff.py
index e59d00a5..4ed58373 100755
--- a/scripts/retracediff.py
+++ b/scripts/retracediff.py
@@ -220,6 +220,10 @@ def main():
type="string", dest="snapshot_frequency", default='draw',
help="calls to compare [default: %default]")
optparser.add_option(
+ '--diff-state',
+ action='store_true', dest='diff_state', default=False,
+ help='diff state between failing calls')
+ optparser.add_option(
'-o', '--output', metavar='FILE',
type="string", dest="output",
help="output file [default: stdout]")
@@ -289,7 +293,7 @@ def main():
refImage.save(prefix + '.ref.png')
srcImage.save(prefix + '.src.png')
comparer.write_diff(prefix + '.diff.png')
- if last_bad < last_good:
+ if last_bad < last_good and options.diff_state:
srcRetracer.diff_state(last_good, callNo, output)
last_bad = callNo
else: