use of com.jopdesign.wcet.ipet.IPETConfig.CacheCostCalculationMethod in project jop by jop-devel.
the class WCETAnalysis method runGlobal.
private void runGlobal(MethodInfo targetMethod) throws InvalidFlowFactException, LpSolveException, UnsupportedCacheModelException {
CacheCostCalculationMethod requestedCacheApprox = IPETConfig.getRequestedCacheApprox(config);
GlobalAnalysis an = new GlobalAnalysis(wcetTool, ipetConfig);
Segment target = Segment.methodSegment(targetMethod, CallString.EMPTY, wcetTool, wcetTool.getCallstringLength(), wcetTool);
/* Run global analysis */
// for(CacheCostCalculationMethod cacheApprox : CacheCostCalculationMethod.values()) {
LpSolveWrapper.resetSolverTime();
long start = System.nanoTime();
wcet = an.computeWCET(targetMethod.getShortName(), target, requestedCacheApprox);
long stop = System.nanoTime();
report(wcet, start, stop, LpSolveWrapper.getSolverTime());
}
Aggregations