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

Issue 1030923002: StackSamplingProfiler clean up (Closed)

Created:
5 years, 9 months ago by Mike Wittman
Modified:
5 years, 8 months ago
CC:
Alexei Svitkine (slow), chromium-reviews, cpu_(ooo_6.6-7.5), danduong, erikwright+watch_chromium.org, zturner
Base URL:
https://chromium.googlesource.com/chromium/src.git@lkcr
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

StackSamplingProfiler clean up Refine interfaces, implementation, formatting and comments according to the C++ style guide and Chrome coding standards. Behavior is unaltered except for a few edge cases and Win32 API error handling. This change is done as part of the readability review process. Original review: https://crrev.com/1016563004. Committed: https://crrev.com/8601b54d3c7aab521ec920e04177f1f3f132f924 Cr-Commit-Position: refs/heads/master@{#324107}

Patch Set 1 #

Total comments: 173

Patch Set 2 : address initial comments #

Total comments: 4

Patch Set 3 : address comments #

Total comments: 40

Patch Set 4 : address comments #

Total comments: 18

Patch Set 5 : address comments #

Patch Set 6 : rebase and update components/metrics #

Total comments: 4

Patch Set 7 : address comments #

Total comments: 3

Patch Set 8 : metrics provider unit test signedness fix #

Patch Set 9 : add comment on priority boost #

Unified diffs Side-by-side diffs Delta from patch set Stats (+503 lines, -410 lines) Patch
M base/BUILD.gn View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M base/base.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
A base/profiler/native_stack_sampler.h View 1 2 3 4 5 6 1 chunk +50 lines, -0 lines 0 comments Download
A base/profiler/native_stack_sampler.cc View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
M base/profiler/stack_sampling_profiler.h View 1 2 3 4 5 6 7 chunks +114 lines, -68 lines 0 comments Download
M base/profiler/stack_sampling_profiler.cc View 1 2 3 4 5 7 chunks +84 lines, -98 lines 0 comments Download
M base/profiler/stack_sampling_profiler_posix.cc View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M base/profiler/stack_sampling_profiler_unittest.cc View 1 2 3 4 5 15 chunks +59 lines, -63 lines 0 comments Download
M base/profiler/stack_sampling_profiler_win.cc View 1 2 3 4 5 6 7 8 4 chunks +159 lines, -165 lines 0 comments Download
M components/metrics/call_stack_profile_metrics_provider.h View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
M components/metrics/call_stack_profile_metrics_provider.cc View 1 2 3 4 5 4 chunks +5 lines, -5 lines 0 comments Download
M components/metrics/call_stack_profile_metrics_provider_unittest.cc View 1 2 3 4 5 6 7 5 chunks +8 lines, -6 lines 0 comments Download

Messages

Total messages: 38 (12 generated)
Mike Wittman
Hi Peter, thanks for doing this readability review!
5 years, 9 months ago (2015-03-24 21:14:12 UTC) #2
Peter Kasting
Thanks for participating in the readability process! Hopefully the number of comments below is not ...
5 years, 9 months ago (2015-03-26 04:29:09 UTC) #3
Mike Wittman
Thanks for the review. I believe I've addressed all of your initial comments with these ...
5 years, 9 months ago (2015-03-27 22:42:05 UTC) #5
Peter Kasting
Have not re-reviewed; just responding to your comments. https://codereview.chromium.org/1030923002/diff/1/base/profiler/stack_sampling_profiler.h File base/profiler/stack_sampling_profiler.h (right): https://codereview.chromium.org/1030923002/diff/1/base/profiler/stack_sampling_profiler.h#newcode81 base/profiler/stack_sampling_profiler.h:81: int ...
5 years, 9 months ago (2015-03-27 23:44:47 UTC) #6
Mike Wittman
https://codereview.chromium.org/1030923002/diff/1/base/profiler/stack_sampling_profiler.h File base/profiler/stack_sampling_profiler.h (right): https://codereview.chromium.org/1030923002/diff/1/base/profiler/stack_sampling_profiler.h#newcode81 base/profiler/stack_sampling_profiler.h:81: int module_index; On 2015/03/27 23:44:46, Peter Kasting wrote: > ...
5 years, 8 months ago (2015-03-30 21:01:13 UTC) #7
Peter Kasting
Seems pretty good to me -- I think once you look over the below things ...
5 years, 8 months ago (2015-03-30 23:07:36 UTC) #8
Mike Wittman
On 2015/03/30 23:07:36, Peter Kasting wrote: > Seems pretty good to me -- I think ...
5 years, 8 months ago (2015-03-31 01:06:37 UTC) #9
Peter Kasting
I don't think any of the below will need serious re-review from me, so LGTM. ...
5 years, 8 months ago (2015-03-31 01:51:26 UTC) #10
Mike Wittman
On 2015/03/31 01:51:26, Peter Kasting wrote: > I don't think any of the below will ...
5 years, 8 months ago (2015-03-31 19:29:41 UTC) #11
Mike Wittman
Carlos and Ilya, can I get your approval for the changes in this readability review? ...
5 years, 8 months ago (2015-04-01 00:12:49 UTC) #13
Ilya Sherman
lgtm https://codereview.chromium.org/1030923002/diff/120001/components/metrics/call_stack_profile_metrics_provider.cc File components/metrics/call_stack_profile_metrics_provider.cc (right): https://codereview.chromium.org/1030923002/diff/120001/components/metrics/call_stack_profile_metrics_provider.cc#newcode121 components/metrics/call_stack_profile_metrics_provider.cc:121: for (const StackSamplingProfiler::CallStackProfile& profile : profiles) { nit: ...
5 years, 8 months ago (2015-04-01 00:27:46 UTC) #14
Mike Wittman
https://codereview.chromium.org/1030923002/diff/120001/components/metrics/call_stack_profile_metrics_provider.cc File components/metrics/call_stack_profile_metrics_provider.cc (right): https://codereview.chromium.org/1030923002/diff/120001/components/metrics/call_stack_profile_metrics_provider.cc#newcode121 components/metrics/call_stack_profile_metrics_provider.cc:121: for (const StackSamplingProfiler::CallStackProfile& profile : profiles) { On 2015/04/01 ...
5 years, 8 months ago (2015-04-01 00:48:50 UTC) #15
Peter Kasting
https://codereview.chromium.org/1030923002/diff/60001/base/profiler/stack_sampling_profiler.h File base/profiler/stack_sampling_profiler.h (right): https://codereview.chromium.org/1030923002/diff/60001/base/profiler/stack_sampling_profiler.h#newcode168 base/profiler/stack_sampling_profiler.h:168: // call to the callback occurs *on the profiler ...
5 years, 8 months ago (2015-04-01 06:16:40 UTC) #16
Mike Wittman
https://codereview.chromium.org/1030923002/diff/60001/base/profiler/stack_sampling_profiler.h File base/profiler/stack_sampling_profiler.h (right): https://codereview.chromium.org/1030923002/diff/60001/base/profiler/stack_sampling_profiler.h#newcode168 base/profiler/stack_sampling_profiler.h:168: // call to the callback occurs *on the profiler ...
5 years, 8 months ago (2015-04-01 19:08:23 UTC) #17
cpu_(ooo_6.6-7.5)
base/ lgtm. did not look at the rest.
5 years, 8 months ago (2015-04-02 01:19:59 UTC) #18
cpu_(ooo_6.6-7.5)
sorry, I take it back, I missed 2 files I that have more code that ...
5 years, 8 months ago (2015-04-02 01:24:47 UTC) #19
cpu_(ooo_6.6-7.5)
lgtm I think you should remove the boost supressor but you can do that in ...
5 years, 8 months ago (2015-04-07 00:31:14 UTC) #20
zturner
https://codereview.chromium.org/1030923002/diff/140001/base/profiler/stack_sampling_profiler_win.cc File base/profiler/stack_sampling_profiler_win.cc (right): https://codereview.chromium.org/1030923002/diff/140001/base/profiler/stack_sampling_profiler_win.cc#newcode149 base/profiler/stack_sampling_profiler_win.cc:149: // resuming the thread. On 2015/04/07 00:31:14, cpu wrote: ...
5 years, 8 months ago (2015-04-07 00:50:57 UTC) #22
Mike Wittman
https://codereview.chromium.org/1030923002/diff/140001/base/profiler/stack_sampling_profiler_win.cc File base/profiler/stack_sampling_profiler_win.cc (right): https://codereview.chromium.org/1030923002/diff/140001/base/profiler/stack_sampling_profiler_win.cc#newcode149 base/profiler/stack_sampling_profiler_win.cc:149: // resuming the thread. On 2015/04/07 00:50:56, zturner wrote: ...
5 years, 8 months ago (2015-04-07 02:09:06 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1030923002/140001
5 years, 8 months ago (2015-04-07 15:45:48 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device_ninja/builds/54873)
5 years, 8 months ago (2015-04-07 15:55:02 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1030923002/160001
5 years, 8 months ago (2015-04-07 16:57:18 UTC) #31
cpu_(ooo_6.6-7.5)
yes, it is the window of time. I guess it could be a somewhat rare ...
5 years, 8 months ago (2015-04-07 17:42:52 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1030923002/180001
5 years, 8 months ago (2015-04-07 19:32:32 UTC) #36
commit-bot: I haz the power
Committed patchset #9 (id:180001)
5 years, 8 months ago (2015-04-07 20:33:12 UTC) #37
commit-bot: I haz the power
5 years, 8 months ago (2015-04-07 20:35:04 UTC) #38
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/8601b54d3c7aab521ec920e04177f1f3f132f924
Cr-Commit-Position: refs/heads/master@{#324107}

Powered by Google App Engine
This is Rietveld 408576698