at.dms.kjc.spacetime
Class NumberGathering

java.lang.Object
  extended by at.dms.kjc.spacetime.NumberGathering

public class NumberGathering
extends Object

This class stores statistics needed to generate automatic performance statistics on the raw simulator. For each file writer, this class calculates how many items will be written for the init and for each steady-state.

Author:
mgordon

Field Summary
 Slice[] fileWriters
          the file writers of the application
 int[] skip
          holds the number of items each fw writes in init
 int[] steady
          holds the number of items each fw writes in steady state
 int totalSteadyItems
          total number of items written in init stage
 
Method Summary
static NumberGathering doit(RawProcElements chip, Slice[] files)
          Collect statistics need for performance code generation on the raw simulator.
 int getID(FileOutputContent foc)
          Given the file writer, return the unique id that identifies it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fileWriters

public Slice[] fileWriters
the file writers of the application


steady

public int[] steady
holds the number of items each fw writes in steady state


skip

public int[] skip
holds the number of items each fw writes in init


totalSteadyItems

public int totalSteadyItems
total number of items written in init stage

Method Detail

doit

public static NumberGathering doit(RawProcElements chip,
                                   Slice[] files)
Collect statistics need for performance code generation on the raw simulator.

Parameters:
chip - The raw chip.
files - The file readers and writer traces.
Returns:
The class with the stats.

getID

public int getID(FileOutputContent foc)
Given the file writer, return the unique id that identifies it.

Parameters:
foc - The file writer.
Returns:
The unique id.