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

Issue 2356753004: IdleWakeups tool (Closed)

Created:
4 years, 3 months ago by stanisc
Modified:
4 years, 3 months ago
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

IdleWakeups tool IdleWakeups is a Windows tool that is designed to measure and aggregate a few key performance metrics for all specified browser processes over time. The list of metrics includes: - Number of running processes - CPU usage (normalized to one core - 100% meaning one core being fully utilized) - Number of context switches (idle wakeups) - Private Working Set - System wide CPU power usage (as reported by Intel Power driver) The tool supports other browsers (such as Edge or Firefox) based on partial image name filter (chrome.exe is default) This was used for browsers efficiency comparison - chrome vs. Edge and Firefox. Also the tool was used as a basis for prototyping and implementing new OS_WIN features in Chrome Task Manager including: - Idle Wakeups column. - More power/memory efficient implementation of Memory column. Sample usage: - "IdleWakeups.exe" to match all Chrome.exe processes. - "IdleWakeups.exe" firefox to match Firefox process. - "IdleWakeups.exe MicrosoftEdge" to match all Edge processes. When the tool starts it begins gathering and aggregating all metrics for all matching processes and print results every 2 seconds. Hit Ctrl+C to stop the measurements and print average and median values over the entire measurement interval. Committed: https://crrev.com/a194af037226cf51bca27ccfc9941932e739ba60 Cr-Commit-Position: refs/heads/master@{#420811}

Patch Set 1 #

Patch Set 2 : Missing vcproj changes. #

Total comments: 1

Patch Set 3 : Refactored code and fixed data structure member styling #

Patch Set 4 : Fixed title for Power column that was replaced in the previous change #

Total comments: 3

Patch Set 5 : Removed TODO from stdafx.cpp and added myself to OWNERS file. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1126 lines, -1 line) Patch
A + tools/win/IdleWakeups/.gitignore View 1 chunk +2 lines, -1 line 0 comments Download
A tools/win/IdleWakeups/IdleWakeups.sln View 1 chunk +28 lines, -0 lines 0 comments Download
A tools/win/IdleWakeups/IdleWakeups.vcxproj View 1 2 1 chunk +163 lines, -0 lines 0 comments Download
A tools/win/IdleWakeups/IdleWakeups.vcxproj.filters View 1 2 1 chunk +42 lines, -0 lines 0 comments Download
A tools/win/IdleWakeups/ReadMe.txt View 1 chunk +23 lines, -0 lines 0 comments Download
A tools/win/IdleWakeups/idle_wakeups.cpp View 1 2 3 1 chunk +348 lines, -0 lines 0 comments Download
A tools/win/IdleWakeups/power_sampler.h View 1 2 1 chunk +49 lines, -0 lines 0 comments Download
A tools/win/IdleWakeups/power_sampler.cpp View 1 chunk +75 lines, -0 lines 0 comments Download
A tools/win/IdleWakeups/stdafx.h View 1 chunk +17 lines, -0 lines 0 comments Download
A + tools/win/IdleWakeups/stdafx.cpp View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
A tools/win/IdleWakeups/system_information_sampler.h View 1 2 1 chunk +62 lines, -0 lines 0 comments Download
A tools/win/IdleWakeups/system_information_sampler.cpp View 1 2 1 chunk +314 lines, -0 lines 0 comments Download
M tools/win/OWNERS View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 21 (8 generated)
stanisc
PTAL
4 years, 3 months ago (2016-09-21 17:47:34 UTC) #2
Ilya Kulshin
lgtm
4 years, 3 months ago (2016-09-21 23:14:24 UTC) #3
brucedawson
Two suggestions for the description: < for all running Chrome > for all specified browser ...
4 years, 3 months ago (2016-09-21 23:23:46 UTC) #4
brucedawson
Does this have the fixes and improvements from when the code got added to the ...
4 years, 3 months ago (2016-09-21 23:30:49 UTC) #5
stanisc
On 2016/09/21 23:30:49, brucedawson wrote: > Does this have the fixes and improvements from when ...
4 years, 3 months ago (2016-09-21 23:38:55 UTC) #6
stanisc
List of changes: 1) Ported a few remaining improvements from TaskManager side - Using a ...
4 years, 3 months ago (2016-09-23 00:07:48 UTC) #9
stanisc
https://codereview.chromium.org/2356753004/diff/60001/tools/win/IdleWakeups/system_information_sampler.cpp File tools/win/IdleWakeups/system_information_sampler.cpp (right): https://codereview.chromium.org/2356753004/diff/60001/tools/win/IdleWakeups/system_information_sampler.cpp#newcode231 tools/win/IdleWakeups/system_information_sampler.cpp:231: return std::unique_ptr<ProcessDataSnapshot>(); Should fail here rather than return an ...
4 years, 3 months ago (2016-09-23 01:57:27 UTC) #10
brucedawson
I think you should include an OWNERS file listing you. Maybe mention somewhere (CL description?) ...
4 years, 3 months ago (2016-09-23 22:10:47 UTC) #11
stanisc
Updated the description and added myself to OWNERS file. https://codereview.chromium.org/2356753004/diff/60001/tools/win/IdleWakeups/stdafx.cpp File tools/win/IdleWakeups/stdafx.cpp (right): https://codereview.chromium.org/2356753004/diff/60001/tools/win/IdleWakeups/stdafx.cpp#newcode8 tools/win/IdleWakeups/stdafx.cpp:8: ...
4 years, 3 months ago (2016-09-23 22:33:16 UTC) #13
brucedawson
lgtm
4 years, 3 months ago (2016-09-23 22:40:53 UTC) #14
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/2356753004/80001
4 years, 3 months ago (2016-09-24 01:10:21 UTC) #17
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 3 months ago (2016-09-24 01:38:58 UTC) #19
commit-bot: I haz the power
4 years, 3 months ago (2016-09-24 01:41:50 UTC) #21
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/a194af037226cf51bca27ccfc9941932e739ba60
Cr-Commit-Position: refs/heads/master@{#420811}

Powered by Google App Engine
This is Rietveld 408576698