From 69a3e3221bf6bb8f33a4f5180bba38bfdc98f27c Mon Sep 17 00:00:00 2001 From: Cristian Cadar Date: Thu, 21 Jun 2012 23:36:19 +0000 Subject: Patch by Paul Marinescu improving klee-stats: "klee-stats now reports avg and max memory consumption and states. A bug in the compare-by= functionality has been fixed and the --compare-at=[|last] option has been added. Specifying a value reports all statistics at the point where had value ; specifying 'last' reports at the largest value common to all executions" git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@158948 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/klee-stats/klee-stats | 84 ++++++++++++++++++++++++++++++--------------- 1 file changed, 57 insertions(+), 27 deletions(-) diff --git a/tools/klee-stats/klee-stats b/tools/klee-stats/klee-stats index fac29d19..c98f7000 100755 --- a/tools/klee-stats/klee-stats +++ b/tools/klee-stats/klee-stats @@ -38,18 +38,34 @@ class LazyEvalList: return len(self.lines) -def getMatchedRecord(data,reference,key): - refKey = key(reference) +def getMatchedRecordIdx(data,reference,key): + reference = int(reference) lo = 1 # header hi = len(data)-1 while lo1: table.append(None) - addRecord('Total (%d)'%(len(table)-1,),summary) + addRecord('Total (%d)'%(len(table)-1,),summary, ssummary) table[0:0] = [None,labels,None] table.append(None) printTable(table) -- cgit 1.4.1