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

Issue 1573313002: Add support for CountResidentBytes in windows (Closed)

Created:
4 years, 11 months ago by ssid
Modified:
4 years, 11 months ago
CC:
chromium-reviews, tracing+reviews_chromium.org, wfh+watch_chromium.org, vmpstr+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add support for CountResidentBytes in windows This CL adds support for CountResidentBytes on windows. The QueryWorkingSetEx gives the information about pages in range of given address that are in the working set of the process. We use that to count the resident bytes similar to how it's done in other platforms. BUG=570655 Committed: https://crrev.com/b39972df6e73b63050a982db7723b664c2afb729 Cr-Commit-Position: refs/heads/master@{#370689}

Patch Set 1 #

Patch Set 2 : Fixes. #

Patch Set 3 : fix? #

Total comments: 4

Patch Set 4 : Remove +1 #

Total comments: 6

Patch Set 5 : fixed result and comment. #

Patch Set 6 : Nit. #

Total comments: 6

Patch Set 7 : Fixes. #

Total comments: 2

Patch Set 8 : Fix. #

Patch Set 9 : format. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -17 lines) Patch
M base/trace_event/process_memory_dump.h View 1 chunk +2 lines, -1 line 0 comments Download
M base/trace_event/process_memory_dump.cc View 1 2 3 4 5 6 7 8 2 chunks +34 lines, -16 lines 0 comments Download

Messages

Total messages: 26 (7 generated)
ssid
I checked with local test cases that it gives correct values. By allocating memory and ...
4 years, 11 months ago (2016-01-12 12:21:25 UTC) #2
ssid
On 2016/01/12 12:21:25, ssid wrote: > I checked with local test cases that it gives ...
4 years, 11 months ago (2016-01-18 11:46:15 UTC) #3
Primiano Tucci (use gerrit)
I think I'd ask +brucedawson here. Not a windows expert here. Bruce: can I ask ...
4 years, 11 months ago (2016-01-19 17:56:49 UTC) #5
brucedawson
https://codereview.chromium.org/1573313002/diff/40001/base/trace_event/process_memory_dump.cc File base/trace_event/process_memory_dump.cc (right): https://codereview.chromium.org/1573313002/diff/40001/base/trace_event/process_memory_dump.cc#newcode70 base/trace_event/process_memory_dump.cc:70: std::vector<PSAPI_WORKING_SET_EX_INFORMATION> vec(page_count + 1); Why is there a "+ ...
4 years, 11 months ago (2016-01-19 19:39:08 UTC) #6
ssid
https://codereview.chromium.org/1573313002/diff/40001/base/trace_event/process_memory_dump.cc File base/trace_event/process_memory_dump.cc (right): https://codereview.chromium.org/1573313002/diff/40001/base/trace_event/process_memory_dump.cc#newcode70 base/trace_event/process_memory_dump.cc:70: std::vector<PSAPI_WORKING_SET_EX_INFORMATION> vec(page_count + 1); On 2016/01/19 19:39:08, brucedawson wrote: ...
4 years, 11 months ago (2016-01-19 19:58:16 UTC) #8
brucedawson
A few thoughts. Only the #else comment really needs fixing, but the others are worth ...
4 years, 11 months ago (2016-01-19 20:16:43 UTC) #9
ssid
Thanks, replied inline. https://codereview.chromium.org/1573313002/diff/80001/base/trace_event/process_memory_dump.cc File base/trace_event/process_memory_dump.cc (right): https://codereview.chromium.org/1573313002/diff/80001/base/trace_event/process_memory_dump.cc#newcode52 base/trace_event/process_memory_dump.cc:52: int result = 0; // 0 ...
4 years, 11 months ago (2016-01-20 13:04:00 UTC) #10
brucedawson
A few remaining nits (sorry I didn't notice one of them earlier) but lgtm. https://codereview.chromium.org/1573313002/diff/120001/base/trace_event/process_memory_dump.cc ...
4 years, 11 months ago (2016-01-20 18:21:07 UTC) #11
ssid
addressed comments. Thanks. primiano@ PTAL. https://codereview.chromium.org/1573313002/diff/120001/base/trace_event/process_memory_dump.cc File base/trace_event/process_memory_dump.cc (right): https://codereview.chromium.org/1573313002/diff/120001/base/trace_event/process_memory_dump.cc#newcode63 base/trace_event/process_memory_dump.cc:63: mincore(reinterpret_cast<void*>(chunk_start), chunk_size, vec.data()); On ...
4 years, 11 months ago (2016-01-20 19:06:16 UTC) #12
brucedawson
https://codereview.chromium.org/1573313002/diff/140001/base/trace_event/process_memory_dump.cc File base/trace_event/process_memory_dump.cc (right): https://codereview.chromium.org/1573313002/diff/140001/base/trace_event/process_memory_dump.cc#newcode84 base/trace_event/process_memory_dump.cc:84: result = !!mincore(reinterpret_cast<void*>(chunk_start), chunk_size, Oops! You can't put the ...
4 years, 11 months ago (2016-01-20 20:48:04 UTC) #13
ssid
https://codereview.chromium.org/1573313002/diff/140001/base/trace_event/process_memory_dump.cc File base/trace_event/process_memory_dump.cc (right): https://codereview.chromium.org/1573313002/diff/140001/base/trace_event/process_memory_dump.cc#newcode84 base/trace_event/process_memory_dump.cc:84: result = !!mincore(reinterpret_cast<void*>(chunk_start), chunk_size, On 2016/01/20 20:48:04, brucedawson wrote: ...
4 years, 11 months ago (2016-01-20 20:50:51 UTC) #14
brucedawson
On 2016/01/20 20:50:51, ssid wrote: > https://codereview.chromium.org/1573313002/diff/140001/base/trace_event/process_memory_dump.cc > File base/trace_event/process_memory_dump.cc (right): > > https://codereview.chromium.org/1573313002/diff/140001/base/trace_event/process_memory_dump.cc#newcode84 > ...
4 years, 11 months ago (2016-01-20 20:53:04 UTC) #15
Primiano Tucci (use gerrit)
LGTM Thanks a lot Bruce!
4 years, 11 months ago (2016-01-21 11:58:10 UTC) #16
ssid
On 2016/01/21 11:58:10, Primiano Tucci wrote: > LGTM > Thanks a lot Bruce! Yup thanks. ...
4 years, 11 months ago (2016-01-21 11:59:20 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1573313002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1573313002/180001
4 years, 11 months ago (2016-01-21 11:59:43 UTC) #19
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-21 13:39:31 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1573313002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1573313002/180001
4 years, 11 months ago (2016-01-21 13:55:23 UTC) #23
commit-bot: I haz the power
Committed patchset #9 (id:180001)
4 years, 11 months ago (2016-01-21 13:59:03 UTC) #24
commit-bot: I haz the power
4 years, 11 months ago (2016-01-21 14:00:24 UTC) #26
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/b39972df6e73b63050a982db7723b664c2afb729
Cr-Commit-Position: refs/heads/master@{#370689}

Powered by Google App Engine
This is Rietveld 408576698