Package avrora.util.profiling

Examples of avrora.util.profiling.Distribution.record()


                "Aggregate size", "Distribution of Set Size");
        while (i.hasNext()) {
            StateCache.State state = (StateCache.State)i.next();
            StateCache.Set stateSet = state.info.stateSet;
            int size = stateSet == null ? 0 : stateSet.size();
            sizeDist.record(size);
        }
        sizeDist.processData();
        sizeDist.textReport();
    }
View Full Code Here


    private void analyzeStates() {
        Iterator i = graph.getStateCache().getStateIterator();
        Distribution pcDist = new Distribution("Distribution of program states over PC", "Number of unique instructions", null, "Distribution");
        while (i.hasNext()) {
            StateCache.State s = (StateCache.State)i.next();
            pcDist.record(s.getPC());

        }
        pcDist.processData();
        pcDist.textReport();
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.