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

Issue 2254743003: Introduce mojo interface for collecting StackSamplingProfiler data (Closed)

Created:
4 years, 4 months ago by Mike Wittman
Modified:
4 years, 4 months ago
Reviewers:
Tom Sepez, Ilya Sherman, sky
CC:
chromium-reviews, qsr+mojo_chromium.org, droger+watchlist_chromium.org, viettrungluu+watch_chromium.org, blundell+watchlist_chromium.org, sdefresne+watchlist_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, asvitkine+watch_chromium.org, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@lkcr
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce mojo interface for collecting StackSamplingProfiler data Adds interfaces, typemaps, and tests for collecting StackSamplingProfiler result types. The collection interface will be used to receive stack profiles from non-browser processes. BUG=517958 Committed: https://crrev.com/551e14b666639639850b2de5588b30b4e40d626b Cr-Commit-Position: refs/heads/master@{#412963}

Patch Set 1 #

Total comments: 5

Patch Set 2 : move files to public subdirs #

Patch Set 3 : remove struct traits context #

Patch Set 4 : compile fix #

Total comments: 13

Patch Set 5 : address comments #

Patch Set 6 : disable test for iOS #

Unified diffs Side-by-side diffs Delta from patch set Stats (+516 lines, -21 lines) Patch
M base/profiler/stack_sampling_profiler.h View 1 chunk +4 lines, -2 lines 0 comments Download
M base/profiler/stack_sampling_profiler.cc View 2 chunks +9 lines, -1 line 0 comments Download
M components/metrics/BUILD.gn View 1 3 chunks +4 lines, -0 lines 0 comments Download
M components/metrics/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
A components/metrics/public/cpp/BUILD.gn View 1 2 3 4 5 1 chunk +25 lines, -0 lines 0 comments Download
A + components/metrics/public/cpp/OWNERS View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A components/metrics/public/cpp/call_stack_profile.typemap View 1 1 chunk +17 lines, -0 lines 0 comments Download
A components/metrics/public/cpp/call_stack_profile_struct_traits.h View 1 2 3 4 1 chunk +138 lines, -0 lines 0 comments Download
A components/metrics/public/cpp/call_stack_profile_struct_traits_unittest.cc View 1 2 3 4 1 chunk +251 lines, -0 lines 0 comments Download
A + components/metrics/public/cpp/typemaps.gni View 1 1 chunk +1 line, -1 line 0 comments Download
A + components/metrics/public/interfaces/BUILD.gn View 1 1 chunk +9 lines, -19 lines 0 comments Download
A + components/metrics/public/interfaces/OWNERS View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A components/metrics/public/interfaces/call_stack_profile_collector.mojom View 1 1 chunk +40 lines, -0 lines 0 comments Download
A components/metrics/public/interfaces/call_stack_profile_collector_test.mojom View 1 1 chunk +18 lines, -0 lines 0 comments Download
M mojo/public/tools/bindings/chromium_bindings_configuration.gni View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 33 (16 generated)
Mike Wittman
PTAL sky: * isherman: * tsepez: mojom, struct_traits
4 years, 4 months ago (2016-08-17 20:25:40 UTC) #3
sky
https://codereview.chromium.org/2254743003/diff/1/components/metrics/call_stack_profile_collector.mojom File components/metrics/call_stack_profile_collector.mojom (right): https://codereview.chromium.org/2254743003/diff/1/components/metrics/call_stack_profile_collector.mojom#newcode7 components/metrics/call_stack_profile_collector.mojom:7: import "mojo/common/common_custom_types.mojom"; Generally we put mojoms in a directory ...
4 years, 4 months ago (2016-08-17 21:01:33 UTC) #4
Tom Sepez
lgtm
4 years, 4 months ago (2016-08-17 21:53:08 UTC) #5
Mike Wittman
https://codereview.chromium.org/2254743003/diff/1/components/metrics/call_stack_profile_collector.mojom File components/metrics/call_stack_profile_collector.mojom (right): https://codereview.chromium.org/2254743003/diff/1/components/metrics/call_stack_profile_collector.mojom#newcode7 components/metrics/call_stack_profile_collector.mojom:7: import "mojo/common/common_custom_types.mojom"; On 2016/08/17 21:01:33, sky wrote: > Generally ...
4 years, 4 months ago (2016-08-17 22:40:15 UTC) #8
Mike Wittman
https://codereview.chromium.org/2254743003/diff/1/components/metrics/call_stack_profile_struct_traits.h File components/metrics/call_stack_profile_struct_traits.h (right): https://codereview.chromium.org/2254743003/diff/1/components/metrics/call_stack_profile_struct_traits.h#newcode150 components/metrics/call_stack_profile_struct_traits.h:150: base::Optional<std::vector<base::StackSamplingProfiler::Module>> modules; On 2016/08/17 22:40:15, Mike Wittman wrote: > ...
4 years, 4 months ago (2016-08-17 23:20:57 UTC) #11
sky
Nice, LGTM
4 years, 4 months ago (2016-08-17 23:41:14 UTC) #14
Ilya Sherman
LGTM % comments. I'm minimally fluent in Mojo, so apologies if some/all of the comments ...
4 years, 4 months ago (2016-08-18 07:59:18 UTC) #17
Mike Wittman
https://codereview.chromium.org/2254743003/diff/60001/components/metrics/public/cpp/call_stack_profile_struct_traits.h File components/metrics/public/cpp/call_stack_profile_struct_traits.h (right): https://codereview.chromium.org/2254743003/diff/60001/components/metrics/public/cpp/call_stack_profile_struct_traits.h#newcode39 components/metrics/public/cpp/call_stack_profile_struct_traits.h:39: if (!data.ReadId(&id) || !data.ReadFilename(&filename)) On 2016/08/18 07:59:18, Ilya Sherman ...
4 years, 4 months ago (2016-08-18 17:49:19 UTC) #18
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/2254743003/100001
4 years, 4 months ago (2016-08-18 19:09:59 UTC) #21
Ilya Sherman
Thanks, Mike. https://codereview.chromium.org/2254743003/diff/60001/components/metrics/public/cpp/call_stack_profile_struct_traits.h File components/metrics/public/cpp/call_stack_profile_struct_traits.h (right): https://codereview.chromium.org/2254743003/diff/60001/components/metrics/public/cpp/call_stack_profile_struct_traits.h#newcode39 components/metrics/public/cpp/call_stack_profile_struct_traits.h:39: if (!data.ReadId(&id) || !data.ReadFilename(&filename)) On 2016/08/18 17:49:19, ...
4 years, 4 months ago (2016-08-18 21:39:49 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/276286)
4 years, 4 months ago (2016-08-18 21:57:01 UTC) #24
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/2254743003/100001
4 years, 4 months ago (2016-08-18 21:58:35 UTC) #26
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 4 months ago (2016-08-18 22:53:39 UTC) #28
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/551e14b666639639850b2de5588b30b4e40d626b Cr-Commit-Position: refs/heads/master@{#412963}
4 years, 4 months ago (2016-08-18 23:24:37 UTC) #30
pauljensen
A revert of this CL (patchset #6 id:100001) has been created in https://codereview.chromium.org/2264613002/ by pauljensen@chromium.org. ...
4 years, 4 months ago (2016-08-19 14:34:11 UTC) #31
chromium-reviews
Drive-by: Probably we should make the stack sampling profiler a separate target under components/metrics - ...
4 years, 4 months ago (2016-08-19 14:45:10 UTC) #32
Mike Wittman
4 years, 4 months ago (2016-08-19 16:09:31 UTC) #33
Message was sent while issue was closed.
The skia dependency was my doing. A declared dependency on it crept in to one of
the build files at some point during development.

I'll move to a separate target in the reland.

On 2016/08/19 14:45:10, chromium-reviews wrote:
> Drive-by: Probably we should make the stack sampling profiler a separate
> target under components/metrics - so that something depending just on
> components/metrics (e.g. like Cronet) doesn't need to depend on that target.
> 
> Although, it's also surprising to me that a dependency on mojo adds a
> dependency on Skia. Probably should file a bug about mojo folks about this.
> 
> On Fri, Aug 19, 2016 at 7:34 AM, <mailto:pauljensen@chromium.org> wrote:
> 
> > A revert of this CL (patchset #6 id:100001) has been created in
> > https://codereview.chromium.org/2264613002/ by
mailto:pauljensen@chromium.org.
> >
> > The reason for reverting is: This inadvertently makes skia a dependency of
> > components/metrics, which nearly doubles the size of Cronet and breaks the
> > Cronet ARMv6 bot because ARMv6 doesn't support Neon but skia requires
> > Neon..
> >
> > https://codereview.chromium.org/2254743003/
> >
> 
> -- 
> You received this message because you are subscribed to the Google Groups
> "Chromium-reviews" group.
> To unsubscribe from this group and stop receiving emails from it, send an
email
> to mailto:chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698