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

Issue 2667023004: Add comments explaining Task Manager idle wakeups computation. (Closed)

Created:
3 years, 10 months ago by shrike
Modified:
3 years, 10 months ago
CC:
chromium-reviews, vmpstr+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add comments explaining Task Manager idle wakeups computation. Adds some comments that would have been helpful to me as I traced the code to understand it. I think they will be helpful to future readers of the code. BUG=687424 Review-Url: https://codereview.chromium.org/2667023004 Cr-Commit-Position: refs/heads/master@{#447890} Committed: https://chromium.googlesource.com/chromium/src/+/36fa3dee1690ef5561ee86c653fc9b56fcba73e1

Patch Set 1 #

Patch Set 2 : Add comment about interrupt wakeups vs. idle wakeups. #

Total comments: 2

Patch Set 3 : Restore code, add a comment. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -1 line) Patch
M base/process/process_metrics.cc View 1 2 1 chunk +2 lines, -1 line 1 comment Download
M base/process/process_metrics_mac.cc View 1 1 chunk +11 lines, -0 lines 1 comment Download

Messages

Total messages: 15 (7 generated)
shrike
brucedawson@ - PTAL (for a sanity check).
3 years, 10 months ago (2017-02-01 02:10:57 UTC) #3
brucedawson
I'm pretty sure it's correct as is. I've used this old trick too many times ...
3 years, 10 months ago (2017-02-02 00:55:29 UTC) #4
brucedawson
BTW, stanisc@ probably knows the code best.
3 years, 10 months ago (2017-02-02 00:55:56 UTC) #5
shrike
mark@ - PTAL https://codereview.chromium.org/2667023004/diff/20001/base/process/process_metrics.cc File base/process/process_metrics.cc (left): https://codereview.chromium.org/2667023004/diff/20001/base/process/process_metrics.cc#oldcode89 base/process/process_metrics.cc:89: return (wakeups_delta_for_ms + time_delta / 2) ...
3 years, 10 months ago (2017-02-02 16:12:50 UTC) #8
brucedawson
lgtm https://codereview.chromium.org/2667023004/diff/40001/base/process/process_metrics.cc File base/process/process_metrics.cc (right): https://codereview.chromium.org/2667023004/diff/40001/base/process/process_metrics.cc#newcode89 base/process/process_metrics.cc:89: // dropping down into floating point). It's funny ...
3 years, 10 months ago (2017-02-02 19:52:03 UTC) #9
Mark Mentovai
LGTM
3 years, 10 months ago (2017-02-02 21:55:12 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2667023004/40001
3 years, 10 months ago (2017-02-02 22:30:55 UTC) #12
commit-bot: I haz the power
3 years, 10 months ago (2017-02-03 00:06:16 UTC) #15
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/36fa3dee1690ef5561ee86c653fc...

Powered by Google App Engine
This is Rietveld 408576698