if (debugrates) { if (librarydebug) { System.err.print(filterIter.getObject(). getClass().getName()); } else { System.err.print(((SIRStream)filterIter.getObject()) .getIdent()); } System.err.println(" steady state: push " + push + " pop " + pop + " maxPeek " + maxPeek); }
    public void computeSteadyState()    {        int pop = 0, push = 0;        int maxPeek = 0;        // go through all the work functions        int phase;        for (phase = 0; phase < filterIter.getNumWorkPhases(); phase++)        {            int workPeek = filterIter.getPeekPhase(phase);            int workPop = filterIter.getPopPhase(phase);            int workPush = filterIter.getPushPhase(phase);            // peek will be the maximum of previous peek and current            // peek - it is possible that previous work function had            // a peek value that ended up being larger than my peek!            maxPeek = MAX(maxPeek, pop + workPeek);            pop += workPop;            push += workPush;        }        setSteadyPeek(maxPeek);        setSteadyPop(pop);        setSteadyPush(push);    }