|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.dms.kjc.sir.lowering.partition.WorkEstimate
public class WorkEstimate
Provides a means for estimating the amount of work in a stream graph. This is meant to be an IMMUTABLE class. Once you have an instance, it's estimates will never change. Thus you can do the estimate once, then pass it around and share it.
Field Summary | |
---|---|
static boolean |
UNROLL_FOR_WORK_EST
If true, attempt to fully unroll the filter before we estimate its work |
Method Summary | |
---|---|
HashMap |
getExecutionCounts()
Return the execution counts that were used to create this work estimation. |
int |
getICodeSize(SIRFilter filter)
Returns estimate of instruction code for |
int |
getReps(SIRFilter obj)
Returns the number of times that filter |
WorkList |
getSortedContainerWork()
Returns a sorted worklist in increasing order of work for all containers in this graph that contain at least a single filter. |
WorkList |
getSortedFilterWork()
Returns a sorted worklist corresponding to a given work estimate. |
int |
getWork(SIRFilter obj)
Returns the work estimate for filter |
static WorkEstimate |
getWorkEstimate(SIRStream str)
Returns a work estimate of |
void |
printGraph(SIRStream str,
String filename)
Prints dot graph of work estimates for |
void |
printWork()
prints work of all functions to system.err. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static boolean UNROLL_FOR_WORK_EST
Method Detail |
---|
public static WorkEstimate getWorkEstimate(SIRStream str)
str
public WorkList getSortedFilterWork()
public HashMap getExecutionCounts()
public WorkList getSortedContainerWork()
public int getWork(SIRFilter obj)
obj. Requires that
objwas present in the original graph used to construct this.
public int getICodeSize(SIRFilter filter)
filter
public int getReps(SIRFilter obj)
objexecutes in this estimate. Requires that
objwas present in the original graph used to construct this.
public void printWork()
public void printGraph(SIRStream str, String filename)
strto
filename.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |