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

Issue 1433603004: Add ProcessMetrics::CreateCurrentProcessMetrics() method. (Closed)

Created:
5 years, 1 month ago by fdoray
Modified:
5 years, 1 month ago
Reviewers:
Lei Zhang, no sievers
CC:
chromium-reviews, vmpstr+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@a_counter_with_ts
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add ProcessMetrics::CreateCurrentProcessMetrics() method. Code that creates a ProcessMetrics object can be confusing because ProcessMetrics::CreateProcessMetrics() has a different signature on Mac. The extra Mac parameter isn't required when creating a ProcessMetrics object for the current process (which is a common thing to do). To allow simplification of code that creates a ProcessMetrics object for the current process, this CL introduces a new ProcessMetrics::CreateCurrentProcessMetrics() method, which has the same signature on all platforms. BUG=553266 Committed: https://crrev.com/28787424acfc81f458824812a35c67d461b84035 Cr-Commit-Position: refs/heads/master@{#359199}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Lei Zhang comments #3 (use CreateCurrentProcessMetrics where relevant, nits, comments) #

Total comments: 4

Patch Set 3 : Lei Zhang comments #6 (nits) #

Patch Set 4 : Remove patch dependency (oops.... #

Patch Set 5 : Remove patch dependency #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -44 lines) Patch
M base/process/process_metrics.h View 1 2 chunks +8 lines, -2 lines 0 comments Download
M base/process/process_metrics.cc View 1 1 chunk +8 lines, -0 lines 0 comments Download
M base/trace_event/process_memory_totals_dump_provider.cc View 1 2 chunks +1 line, -13 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_database.cc View 1 2 1 chunk +1 line, -8 lines 0 comments Download
M content/browser/browser_main_loop.cc View 1 1 chunk +1 line, -6 lines 0 comments Download
M content/child/blink_platform_impl.cc View 1 2 2 chunks +3 lines, -15 lines 0 comments Download

Messages

Total messages: 17 (6 generated)
fdoray
Could you review this CL? Thanks.
5 years, 1 month ago (2015-11-09 04:32:31 UTC) #2
Lei Zhang
Can any current CreateCurrentProcessMetrics() callers be converted to the new version? If so, might as ...
5 years, 1 month ago (2015-11-09 19:24:51 UTC) #3
fdoray
thestig@: All done. Could you take another look at base/ and chrome/? Thanks. sievers@: Could ...
5 years, 1 month ago (2015-11-10 19:30:27 UTC) #5
Lei Zhang
lgtm https://codereview.chromium.org/1433603004/diff/20001/chrome/browser/safe_browsing/safe_browsing_database.cc File chrome/browser/safe_browsing/safe_browsing_database.cc (right): https://codereview.chromium.org/1433603004/diff/20001/chrome/browser/safe_browsing/safe_browsing_database.cc#newcode1433 chrome/browser/safe_browsing/safe_browsing_database.cc:1433: ProcessMetrics::CreateCurrentProcessMetrics()); base:: ? https://codereview.chromium.org/1433603004/diff/20001/content/child/blink_platform_impl.cc File content/child/blink_platform_impl.cc (right): https://codereview.chromium.org/1433603004/diff/20001/content/child/blink_platform_impl.cc#newcode1257 ...
5 years, 1 month ago (2015-11-10 22:02:29 UTC) #6
fdoray
thestig@: All done. Thanks for the review. sievers@: Can you review content/? https://codereview.chromium.org/1433603004/diff/20001/chrome/browser/safe_browsing/safe_browsing_database.cc File chrome/browser/safe_browsing/safe_browsing_database.cc ...
5 years, 1 month ago (2015-11-11 22:04:38 UTC) #7
no sievers
On 2015/11/11 22:04:38, fdoray wrote: > thestig@: All done. Thanks for the review. > sievers@: ...
5 years, 1 month ago (2015-11-11 22:10:46 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1433603004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1433603004/80001
5 years, 1 month ago (2015-11-11 22:18:49 UTC) #11
commit-bot: I haz the power
Exceeded global retry quota
5 years, 1 month ago (2015-11-11 22:39:55 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1433603004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1433603004/80001
5 years, 1 month ago (2015-11-11 23:41:46 UTC) #15
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 1 month ago (2015-11-12 01:12:39 UTC) #16
commit-bot: I haz the power
5 years, 1 month ago (2015-11-12 20:02:19 UTC) #17
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/28787424acfc81f458824812a35c67d461b84035
Cr-Commit-Position: refs/heads/master@{#359199}

Powered by Google App Engine
This is Rietveld 408576698