Revision 1333,
332 bytes
checked in by wojtekp, 11 years ago
(diff) |
|
-
Property svn:mime-type set to
text/plain
|
Rev | Line | |
---|
[1333] | 1 | package test.appProfConverter; |
---|
| 2 | public class AppPowerEstimator { |
---|
| 3 | |
---|
| 4 | public static Double PhasePower(SoftwarePhase phase, HardwareProfile hwProf) { |
---|
| 5 | Double pow = 0.0; |
---|
| 6 | |
---|
| 7 | PhaseState pstate = hwProf.proc.Pstate_map.get(phase.RefFreq); |
---|
| 8 | |
---|
| 9 | pow = (pstate.PowerUsageMax - pstate.PowerUsageMin) |
---|
| 10 | * phase.PM_CPU_Usage; |
---|
| 11 | |
---|
| 12 | return pow; |
---|
| 13 | } |
---|
| 14 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.