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

Unified Diff: base/process/process_metrics.cc

Issue 2667023004: Add comments explaining Task Manager idle wakeups computation. (Closed)
Patch Set: Add comment about interrupt wakeups vs. idle wakeups. Created 3 years, 11 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 | « no previous file | base/process/process_metrics_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/process/process_metrics.cc
diff --git a/base/process/process_metrics.cc b/base/process/process_metrics.cc
index cc6532c8dca15c233044c24c4f5e0e3557ef99db..d955e0769e793e9e2ed6d7f8f49278a521e91a48 100644
--- a/base/process/process_metrics.cc
+++ b/base/process/process_metrics.cc
@@ -86,7 +86,7 @@ int ProcessMetrics::CalculateIdleWakeupsPerSecond(
// Round to average wakeups per second.
int64_t wakeups_delta_for_ms = wakeups_delta * Time::kMicrosecondsPerSecond;
- return (wakeups_delta_for_ms + time_delta / 2) / time_delta;
brucedawson 2017/02/02 00:55:29 This term is presumably (see comment on line 87) t
shrike 2017/02/02 16:12:50 Thank you brucedawson@. I saw the comment about ro
+ return wakeups_delta_for_ms / time_delta;
}
#else
int ProcessMetrics::GetIdleWakeupsPerSecond() {
« no previous file with comments | « no previous file | base/process/process_metrics_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698