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

Issue 2438073002: Use movable types for CallStackProfile(s) to remove copying of data. (Closed)

Created:
4 years, 2 months ago by bcwhite
Modified:
4 years, 1 month ago
CC:
chromium-reviews, asvitkine+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use movable types for CallStackProfile(s) to remove copying of data. BUG=658883 TBR=jschuh (for security of unittest) Committed: https://crrev.com/c3c851d8622ae32dfb293181be904788b28d2f0d Cr-Commit-Position: refs/heads/master@{#427799}

Patch Set 1 #

Patch Set 2 : fix tests and build problems #

Total comments: 12

Patch Set 3 : addressed review comments by wittman #

Total comments: 10

Patch Set 4 : address review comments by asvitkine #

Patch Set 5 : added some comments about std::move #

Unified diffs Side-by-side diffs Delta from patch set Stats (+159 lines, -83 lines) Patch
M base/profiler/stack_sampling_profiler.h View 1 2 3 4 chunks +15 lines, -3 lines 0 comments Download
M base/profiler/stack_sampling_profiler.cc View 1 2 3 4 5 chunks +20 lines, -7 lines 0 comments Download
M base/profiler/stack_sampling_profiler_unittest.cc View 1 2 3 chunks +5 lines, -4 lines 0 comments Download
M components/metrics/call_stack_profile_collector.h View 1 chunk +1 line, -1 line 0 comments Download
M components/metrics/call_stack_profile_collector.cc View 1 2 2 chunks +5 lines, -4 lines 0 comments Download
M components/metrics/call_stack_profile_metrics_provider.h View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M components/metrics/call_stack_profile_metrics_provider.cc View 1 2 3 4 7 chunks +24 lines, -15 lines 0 comments Download
M components/metrics/call_stack_profile_metrics_provider_unittest.cc View 1 2 18 chunks +34 lines, -14 lines 0 comments Download
M components/metrics/child_call_stack_profile_collector.h View 1 2 3 4 1 chunk +10 lines, -4 lines 0 comments Download
M components/metrics/child_call_stack_profile_collector.cc View 1 2 5 chunks +21 lines, -10 lines 0 comments Download
M components/metrics/child_call_stack_profile_collector_unittest.cc View 1 2 7 chunks +17 lines, -15 lines 0 comments Download
M components/metrics/public/cpp/call_stack_profile.typemap View 1 chunk +1 line, -1 line 0 comments Download
M components/metrics/public/cpp/call_stack_profile_struct_traits_unittest.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 80 (64 generated)
bcwhite
4 years, 2 months ago (2016-10-21 16:10:35 UTC) #41
Mike Wittman
https://codereview.chromium.org/2438073002/diff/160001/base/profiler/stack_sampling_profiler.cc File base/profiler/stack_sampling_profiler.cc (right): https://codereview.chromium.org/2438073002/diff/160001/base/profiler/stack_sampling_profiler.cc#newcode113 base/profiler/stack_sampling_profiler.cc:113: const CallStackProfile& other) = default; nit: function order (this ...
4 years, 2 months ago (2016-10-21 18:05:30 UTC) #44
Mike Wittman
Thanks for addressing, this btw!
4 years, 2 months ago (2016-10-21 18:05:52 UTC) #45
bcwhite
https://codereview.chromium.org/2438073002/diff/160001/base/profiler/stack_sampling_profiler.cc File base/profiler/stack_sampling_profiler.cc (right): https://codereview.chromium.org/2438073002/diff/160001/base/profiler/stack_sampling_profiler.cc#newcode113 base/profiler/stack_sampling_profiler.cc:113: const CallStackProfile& other) = default; On 2016/10/21 18:05:29, Mike ...
4 years, 1 month ago (2016-10-24 13:17:45 UTC) #46
Mike Wittman
lgtm
4 years, 1 month ago (2016-10-24 15:04:20 UTC) #47
bcwhite
asvitkine@chromium.org: Please review changes in
4 years, 1 month ago (2016-10-24 15:07:35 UTC) #49
bcwhite
+jschuh, for some reason this unittest needs a security-owner review: components/metrics/public/cpp/call_stack_profile_struct_traits_unittest.cc
4 years, 1 month ago (2016-10-24 15:13:54 UTC) #51
Alexei Svitkine (slow)
Please create a crbug for this and associate it via BUG= since changes are not ...
4 years, 1 month ago (2016-10-24 15:26:22 UTC) #52
bcwhite
https://codereview.chromium.org/2438073002/diff/180001/base/profiler/stack_sampling_profiler.h File base/profiler/stack_sampling_profiler.h (right): https://codereview.chromium.org/2438073002/diff/180001/base/profiler/stack_sampling_profiler.h#newcode136 base/profiler/stack_sampling_profiler.h:136: DISALLOW_ASSIGN(CallStackProfile); On 2016/10/24 15:26:21, Alexei Svitkine (slow) wrote: > ...
4 years, 1 month ago (2016-10-24 21:30:30 UTC) #56
Alexei Svitkine (slow)
https://codereview.chromium.org/2438073002/diff/180001/components/metrics/call_stack_profile_metrics_provider.h File components/metrics/call_stack_profile_metrics_provider.h (right): https://codereview.chromium.org/2438073002/diff/180001/components/metrics/call_stack_profile_metrics_provider.h#newcode38 components/metrics/call_stack_profile_metrics_provider.h:38: base::StackSamplingProfiler::CallStackProfiles profiles); On 2016/10/24 21:30:30, bcwhite wrote: > > ...
4 years, 1 month ago (2016-10-25 14:34:04 UTC) #59
bcwhite
https://codereview.chromium.org/2438073002/diff/180001/components/metrics/call_stack_profile_metrics_provider.h File components/metrics/call_stack_profile_metrics_provider.h (right): https://codereview.chromium.org/2438073002/diff/180001/components/metrics/call_stack_profile_metrics_provider.h#newcode38 components/metrics/call_stack_profile_metrics_provider.h:38: base::StackSamplingProfiler::CallStackProfiles profiles); On 2016/10/25 14:34:04, Alexei Svitkine (slow) wrote: ...
4 years, 1 month ago (2016-10-25 15:01:04 UTC) #60
Alexei Svitkine (slow)
LGTM % comment https://codereview.chromium.org/2438073002/diff/180001/components/metrics/call_stack_profile_metrics_provider.h File components/metrics/call_stack_profile_metrics_provider.h (right): https://codereview.chromium.org/2438073002/diff/180001/components/metrics/call_stack_profile_metrics_provider.h#newcode38 components/metrics/call_stack_profile_metrics_provider.h:38: base::StackSamplingProfiler::CallStackProfiles profiles); On 2016/10/25 15:01:04, bcwhite ...
4 years, 1 month ago (2016-10-25 15:21:18 UTC) #61
bcwhite
https://codereview.chromium.org/2438073002/diff/180001/components/metrics/call_stack_profile_metrics_provider.h File components/metrics/call_stack_profile_metrics_provider.h (right): https://codereview.chromium.org/2438073002/diff/180001/components/metrics/call_stack_profile_metrics_provider.h#newcode38 components/metrics/call_stack_profile_metrics_provider.h:38: base::StackSamplingProfiler::CallStackProfiles profiles); On 2016/10/25 15:21:18, Alexei Svitkine (slow) wrote: ...
4 years, 1 month ago (2016-10-25 17:16:21 UTC) #67
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/2438073002/260001
4 years, 1 month ago (2016-10-26 18:20:47 UTC) #76
commit-bot: I haz the power
Committed patchset #5 (id:260001)
4 years, 1 month ago (2016-10-26 21:21:07 UTC) #78
commit-bot: I haz the power
4 years, 1 month ago (2016-10-26 21:23:16 UTC) #80
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/c3c851d8622ae32dfb293181be904788b28d2f0d
Cr-Commit-Position: refs/heads/master@{#427799}

Powered by Google App Engine
This is Rietveld 408576698