Changeset 1396 for DCWoRMS/branches/coolemall/src/example/load
- Timestamp:
- 06/26/14 14:18:01 (11 years ago)
- Location:
- DCWoRMS/branches/coolemall/src/example/load
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
DCWoRMS/branches/coolemall/src/example/load/DefaultLoadEstimationPlugin.java
r1290 r1396 5 5 import schedframe.resources.devices.PhysicalResource; 6 6 import schedframe.scheduling.manager.tasks.JobRegistry; 7 import simulator.stats. GSSAccumulator;7 import simulator.stats.DCwormsAccumulator; 8 8 9 9 … … 13 13 14 14 ComputingResource computingResource = (ComputingResource) resource; 15 GSSAccumulator childrenLoad = new GSSAccumulator();15 DCwormsAccumulator childrenLoad = new DCwormsAccumulator(); 16 16 for(ComputingResource compRes: computingResource.getChildren()){ 17 17 childrenLoad.add(compRes.getLoadInterface().getRecentUtilization().getValue()); -
DCWoRMS/branches/coolemall/src/example/load/ProcessorLoadEstimationPlugin.java
r1299 r1396 26 26 double cpuUsage = 1 / nrOfThreadsOnCpu; 27 27 28 for(PhaseBehaviour pb: task.get CurrentResourceConsumption().getBehaviourList()){28 for(PhaseBehaviour pb: task.getExecutionProfile().getCurrentResourceConsumption().getBehaviourList()){ 29 29 if(pb.getResouceName().equals("PM_CPU_Usage")){ 30 30 cpuUsage = pb.getUtilization();
Note: See TracChangeset
for help on using the changeset viewer.