scale.test
Class Stats

java.lang.Object
  extended by scale.test.Stats

public class Stats
extends java.lang.Object

This class extracts the statistics from the output generated by a compilation and/or execution.

$Id: Stats.java,v 1.37 2007-10-04 19:58:39 burrill Exp $

Copyright 2008 by the Scale Compiler Group,
Department of Computer Science
University of Massachusetts,
Amherst MA. 01003, USA
All Rights Reserved.


Field Summary
protected  int aai
           
protected  int[] benchmarkI
           
protected  int benchmarkIndex
           
protected  HashMap<java.lang.String,java.lang.Integer> benchmarkMap
           
protected  Vector<java.lang.String> benchmarkNames
           
protected  java.lang.String[] benchmarks
           
protected  CmdParam bks
           
protected  Vector<Vector<Vector<java.lang.String>>> byFile
           
protected  Vector[] byFileA
           
protected  Vector<scale.test.Stats.Calc> calcVect
           
protected  int cati
           
protected  HashSet<java.lang.String> collectedSet
           
protected static int CSV
           
protected  HashMap<java.lang.String,java.lang.String> cvt
           
protected  int displayMode
           
protected  boolean doAll
           
protected  boolean doJoin
           
protected  boolean doSort
           
protected  boolean doTranspose
           
protected static java.lang.String[] dstats
           
protected  int[] dstatsI
           
protected  CmdParam files
           
protected  Vector<java.lang.String> fname
           
protected  java.lang.String[] fnameA
           
protected  int gsi
           
protected static int HTM
           
protected  java.lang.String[] ignoreVect
           
protected  Vector<java.lang.String> inputFiles
           
protected  CmdParam join
           
protected  java.lang.String[] lax
           
protected  CmdParam mode
           
protected static java.lang.String[] monthN
           
protected static java.lang.String[] monthNI
           
protected static java.lang.String[] nstats
           
protected static char[] nstatsc
           
protected  int[] nstatsI
           
protected  char[] opx
           
protected  int[] ovs
           
protected  CmdParam[] params
           
protected  java.lang.String[] rax
           
protected  CmdParam rc
           
protected  CmdParam sort
           
protected  int statIndex
           
protected  HashMap<java.lang.String,java.lang.Integer> statMap
           
protected  java.lang.String[] stats
           
protected  int[] statsI
           
protected  java.lang.String[] summaryVect
           
protected  int[][] svs
           
protected static int TEX
           
protected  CmdParam title
           
protected  java.lang.String[] totalVect
           
protected  CmdParam tran
           
protected  int[] tvs
           
protected static int TXT
           
protected  HashSet<java.lang.String> wantedBenchmarks
           
protected  java.lang.String[] wantedVect
           
 
Constructor Summary
Stats()
           
 
Method Summary
static void main(java.lang.String[] args)
          Process a set of files generated by a compilation.
protected  void parseCmdLine(java.lang.String[] args, CmdParam[] params)
          Process the command line parameters.
protected  void process()
          Do the processing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TXT

protected static final int TXT
See Also:
Constant Field Values

CSV

protected static final int CSV
See Also:
Constant Field Values

TEX

protected static final int TEX
See Also:
Constant Field Values

HTM

protected static final int HTM
See Also:
Constant Field Values

mode

protected CmdParam mode

rc

protected CmdParam rc

title

protected CmdParam title

files

protected CmdParam files

bks

protected CmdParam bks

tran

protected CmdParam tran

sort

protected CmdParam sort

join

protected CmdParam join

params

protected CmdParam[] params

inputFiles

protected Vector<java.lang.String> inputFiles

wantedVect

protected java.lang.String[] wantedVect

ignoreVect

protected java.lang.String[] ignoreVect

fname

protected Vector<java.lang.String> fname

fnameA

protected java.lang.String[] fnameA

byFileA

protected Vector[] byFileA

byFile

protected Vector<Vector<Vector<java.lang.String>>> byFile

collectedSet

protected HashSet<java.lang.String> collectedSet

statMap

protected HashMap<java.lang.String,java.lang.Integer> statMap

stats

protected java.lang.String[] stats

statsI

protected int[] statsI

statIndex

protected int statIndex

benchmarkMap

protected HashMap<java.lang.String,java.lang.Integer> benchmarkMap

benchmarkNames

protected Vector<java.lang.String> benchmarkNames

benchmarks

protected java.lang.String[] benchmarks

benchmarkI

protected int[] benchmarkI

wantedBenchmarks

protected HashSet<java.lang.String> wantedBenchmarks

benchmarkIndex

protected int benchmarkIndex

doTranspose

protected boolean doTranspose

doJoin

protected boolean doJoin

doAll

protected boolean doAll

doSort

protected boolean doSort

displayMode

protected int displayMode

cvt

protected HashMap<java.lang.String,java.lang.String> cvt

summaryVect

protected java.lang.String[] summaryVect

svs

protected int[][] svs

totalVect

protected java.lang.String[] totalVect

tvs

protected int[] tvs

calcVect

protected Vector<scale.test.Stats.Calc> calcVect

ovs

protected int[] ovs

lax

protected java.lang.String[] lax

rax

protected java.lang.String[] rax

opx

protected char[] opx

nstats

protected static final java.lang.String[] nstats

nstatsc

protected static final char[] nstatsc

monthN

protected static final java.lang.String[] monthN

monthNI

protected static final java.lang.String[] monthNI

dstats

protected static final java.lang.String[] dstats

nstatsI

protected int[] nstatsI

dstatsI

protected int[] dstatsI

aai

protected int aai

cati

protected int cati

gsi

protected int gsi
Constructor Detail

Stats

public Stats()
Method Detail

main

public static void main(java.lang.String[] args)
Process a set of files generated by a compilation.

Parameters:
args - the command line arguments

process

protected void process()
Do the processing. Information is placed in a 3-dimensional array indexed by (file, benchmark, statistic).


parseCmdLine

protected void parseCmdLine(java.lang.String[] args,
                            CmdParam[] params)
Process the command line parameters.

Parameters:
args - the array of command line parameters
params - an array of allowed command line parameters