Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(165)

Unified Diff: webrtc/examples/androidapp/src/org/appspot/apprtc/HudFragment.java

Issue 1951663002: Update CPU monitor to use moving averages. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Rename tags Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/examples/androidapp/src/org/appspot/apprtc/CpuMonitor.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/examples/androidapp/src/org/appspot/apprtc/HudFragment.java
diff --git a/webrtc/examples/androidapp/src/org/appspot/apprtc/HudFragment.java b/webrtc/examples/androidapp/src/org/appspot/apprtc/HudFragment.java
index 776765e6b7de1b3186528e5231928d640ba6aa54..7b6c2902cf0d1052e752b0f403eb93a19800b028 100644
--- a/webrtc/examples/androidapp/src/org/appspot/apprtc/HudFragment.java
+++ b/webrtc/examples/androidapp/src/org/appspot/apprtc/HudFragment.java
@@ -194,8 +194,10 @@ public class HudFragment extends Fragment {
}
if (cpuMonitor != null) {
- encoderStat.append("CPU%: ").append(cpuMonitor.getCpuUsageCurrent())
- .append(". Freq: ").append(cpuMonitor.getCpuFrequencyScaleCurrent());
+ encoderStat.append("CPU%: ")
+ .append(cpuMonitor.getCpuUsageCurrent()).append("/")
+ .append(cpuMonitor.getCpuUsageAverage())
+ .append(". Freq: ").append(cpuMonitor.getFrequencyScaleAverage());
}
encoderStatView.setText(encoderStat.toString());
}
« no previous file with comments | « webrtc/examples/androidapp/src/org/appspot/apprtc/CpuMonitor.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698