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

Issue 981143006: Metrics provider for statistical stack profiler (Closed)

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

Description

Metrics provider for statistical stack profiler Provides a metrics provider that uploads statistical stack profiling state via UMA. This CL builds on top of the statistical profiler implementation in https://crrev.com/1016563004, which is under review. BUG=464929 Committed: https://crrev.com/d19f5200062542283ffc6ab281ea961e481b5846 Cr-Commit-Position: refs/heads/master@{#321928}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : fix clang compilation #

Total comments: 22

Patch Set 4 : restrict changes to metrics provider #

Patch Set 5 : address comments #

Total comments: 53

Patch Set 6 : address isherman comments #

Patch Set 7 : address asvitkine comments #

Patch Set 8 : handle unknown module (per other review) #

Total comments: 12

Patch Set 9 : address comments #

Patch Set 10 : address comments #

Patch Set 11 : update per latest StackSamplingProfiler changes #

Patch Set 12 : rebase #

Patch Set 13 : fix compilation error #

Patch Set 14 : fix multiline comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+681 lines, -2 lines) Patch
M base/profiler/stack_sampling_profiler.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -0 lines 0 comments Download
M base/profiler/stack_sampling_profiler.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/metrics/chrome_metrics_service_client.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +5 lines, -0 lines 0 comments Download
M components/components_tests.gyp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M components/metrics.gypi View 1 2 3 4 5 6 2 chunks +3 lines, -0 lines 0 comments Download
M components/metrics/BUILD.gn View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
A components/metrics/call_stack_profile_metrics_provider.h View 1 2 3 4 5 6 7 8 9 1 chunk +39 lines, -0 lines 0 comments Download
A components/metrics/call_stack_profile_metrics_provider.cc View 1 2 3 4 5 6 7 8 9 1 chunk +133 lines, -0 lines 0 comments Download
A components/metrics/call_stack_profile_metrics_provider_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +418 lines, -0 lines 0 comments Download
M components/metrics/proto/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
A components/metrics/proto/call_stack_profile.proto View 1 2 3 4 5 6 7 8 9 1 chunk +61 lines, -0 lines 0 comments Download
M components/metrics/proto/sampled_profile.proto View 1 2 3 4 2 chunks +6 lines, -2 lines 0 comments Download

Messages

Total messages: 43 (15 generated)
Mike Wittman
PTAL cpu: base isherman: chrome/browser/metrics, components/metrics The code you both reviewed in https://codereview.chromium.org/888923004 is in ...
5 years, 9 months ago (2015-03-07 01:24:21 UTC) #3
Mike Wittman
Also, Ilya: what's the best way to test the CallStackProfileMetricsProvider code? ProvideGeneralMetrics doesn't appear to ...
5 years, 9 months ago (2015-03-07 01:29:44 UTC) #4
chromium-reviews
Can you add alexei svitkine too? Sent from my iPhone > On Mar 6, 2015, ...
5 years, 9 months ago (2015-03-07 01:41:31 UTC) #5
Mike Wittman
+asvitkine
5 years, 9 months ago (2015-03-07 01:42:38 UTC) #6
cpu_(ooo_6.6-7.5)
can you please split this into at least two CLs, 1. Just the things that ...
5 years, 9 months ago (2015-03-09 20:56:40 UTC) #7
Ilya Sherman
On 2015/03/07 01:29:44, Mike Wittman wrote: > Also, Ilya: what's the best way to test ...
5 years, 9 months ago (2015-03-10 01:44:47 UTC) #8
Ilya Sherman
On 2015/03/10 01:44:47, Ilya Sherman wrote: > On 2015/03/07 01:29:44, Mike Wittman wrote: > > ...
5 years, 9 months ago (2015-03-10 23:40:13 UTC) #9
Mike Wittman
On 2015/03/09 20:56:40, cpu wrote: > can you please split this into at least two ...
5 years, 9 months ago (2015-03-16 23:55:15 UTC) #11
Ilya Sherman
Thanks, Mike. https://chromiumcodereview.appspot.com/981143006/diff/80001/chrome/browser/metrics/call_stack_profile_metrics_provider.cc File chrome/browser/metrics/call_stack_profile_metrics_provider.cc (right): https://chromiumcodereview.appspot.com/981143006/diff/80001/chrome/browser/metrics/call_stack_profile_metrics_provider.cc#newcode30 chrome/browser/metrics/call_stack_profile_metrics_provider.cc:30: return *reinterpret_cast<uint64*>(&md5.a[0]); Are you sure this is ...
5 years, 9 months ago (2015-03-17 04:54:35 UTC) #12
Alexei Svitkine (slow)
https://codereview.chromium.org/981143006/diff/80001/chrome/browser/metrics/call_stack_profile_metrics_provider.cc File chrome/browser/metrics/call_stack_profile_metrics_provider.cc (right): https://codereview.chromium.org/981143006/diff/80001/chrome/browser/metrics/call_stack_profile_metrics_provider.cc#newcode16 chrome/browser/metrics/call_stack_profile_metrics_provider.cc:16: using metrics::CallStackEntry; If this file is moved to metrics ...
5 years, 9 months ago (2015-03-17 23:10:10 UTC) #14
Mike Wittman
https://codereview.chromium.org/981143006/diff/80001/chrome/browser/metrics/call_stack_profile_metrics_provider.cc File chrome/browser/metrics/call_stack_profile_metrics_provider.cc (right): https://codereview.chromium.org/981143006/diff/80001/chrome/browser/metrics/call_stack_profile_metrics_provider.cc#newcode30 chrome/browser/metrics/call_stack_profile_metrics_provider.cc:30: return *reinterpret_cast<uint64*>(&md5.a[0]); On 2015/03/17 04:54:35, Ilya Sherman wrote: > ...
5 years, 9 months ago (2015-03-18 00:54:28 UTC) #15
Mike Wittman
https://codereview.chromium.org/981143006/diff/80001/chrome/browser/metrics/call_stack_profile_metrics_provider.cc File chrome/browser/metrics/call_stack_profile_metrics_provider.cc (right): https://codereview.chromium.org/981143006/diff/80001/chrome/browser/metrics/call_stack_profile_metrics_provider.cc#newcode16 chrome/browser/metrics/call_stack_profile_metrics_provider.cc:16: using metrics::CallStackEntry; On 2015/03/17 23:10:10, Alexei Svitkine (away) wrote: ...
5 years, 9 months ago (2015-03-18 01:48:36 UTC) #18
Ilya Sherman
Once the .proto file settles down here, let's do a (hopefully) final update of the ...
5 years, 9 months ago (2015-03-19 00:10:20 UTC) #19
Mike Wittman
https://codereview.chromium.org/981143006/diff/180001/components/metrics/call_stack_profile_metrics_provider.cc File components/metrics/call_stack_profile_metrics_provider.cc (right): https://codereview.chromium.org/981143006/diff/180001/components/metrics/call_stack_profile_metrics_provider.cc#newcode25 components/metrics/call_stack_profile_metrics_provider.cc:25: const base::FilePath::StringType basename = filename.BaseName().value(); On 2015/03/19 00:10:19, Ilya ...
5 years, 9 months ago (2015-03-19 00:56:58 UTC) #20
Ilya Sherman
https://codereview.chromium.org/981143006/diff/80001/components/metrics/proto/call_stack_profile.proto File components/metrics/proto/call_stack_profile.proto (right): https://codereview.chromium.org/981143006/diff/80001/components/metrics/proto/call_stack_profile.proto#newcode41 components/metrics/proto/call_stack_profile.proto:41: } On 2015/03/19 00:10:19, Ilya Sherman wrote: > On ...
5 years, 9 months ago (2015-03-19 02:01:17 UTC) #21
Mike Wittman
https://codereview.chromium.org/981143006/diff/80001/components/metrics/proto/call_stack_profile.proto File components/metrics/proto/call_stack_profile.proto (right): https://codereview.chromium.org/981143006/diff/80001/components/metrics/proto/call_stack_profile.proto#newcode41 components/metrics/proto/call_stack_profile.proto:41: } On 2015/03/19 02:01:16, Ilya Sherman wrote: > On ...
5 years, 9 months ago (2015-03-19 21:51:18 UTC) #22
Ilya Sherman
Thanks. LG to me. Will stamp for real once you've landed the .proto changes upstream. ...
5 years, 9 months ago (2015-03-19 22:00:11 UTC) #23
Mike Wittman
On 2015/03/19 22:00:11, Ilya Sherman wrote: > Thanks. LG to me. Will stamp for real ...
5 years, 9 months ago (2015-03-19 23:50:26 UTC) #24
Ilya Sherman
LGTM, thanks.
5 years, 9 months ago (2015-03-20 18:20:20 UTC) #25
Mike Wittman
Hi Carlos, can you give approval for the rebase-induced changes on base?
5 years, 9 months ago (2015-03-20 23:24:45 UTC) #27
cpu_(ooo_6.6-7.5)
lgtm for /base
5 years, 9 months ago (2015-03-23 19:56:49 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/981143006/260001
5 years, 9 months ago (2015-03-23 20:01:07 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/7821)
5 years, 9 months ago (2015-03-23 20:06:34 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/981143006/280001
5 years, 9 months ago (2015-03-23 22:48:34 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/4583)
5 years, 9 months ago (2015-03-23 23:20:27 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/981143006/300001
5 years, 9 months ago (2015-03-24 00:02:25 UTC) #41
commit-bot: I haz the power
Committed patchset #14 (id:300001)
5 years, 9 months ago (2015-03-24 03:26:13 UTC) #42
commit-bot: I haz the power
5 years, 9 months ago (2015-03-24 03:27:05 UTC) #43
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/d19f5200062542283ffc6ab281ea961e481b5846
Cr-Commit-Position: refs/heads/master@{#321928}

Powered by Google App Engine
This is Rietveld 408576698