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

Issue 791493006: De-client tracing.TraceController interface (Closed)

Created:
6 years ago by jamesr
Modified:
5 years, 10 months ago
Reviewers:
viettrungluu, eseidel
CC:
mojo-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, esprehn, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org, ojan, viettrungluu, qsr
Base URL:
git@github.com:domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

De-client tracing.TraceController interface The tracing service logically provides one service, TraceCoordinator, which can start and stop tracing sessions. It also can connect to any number of TraceControllers each of which can supply tracing information on demand. Whenever an app connects to the tracing service, the tracing service attempts to connect to that app's TraceController interface. If the app provides this interface then tracing data will be requested whenever tracing starts. If the app doesn't, then the pipe just closes. Thus apps that want to be traced can do so by creating however many connections to the tracing service they want and registering a TraceController implementation on each outgoing connection. The shell connects in a similar fashion by connecting to the tracing service and providing a TraceController implementation. The code looks a bit different since the shell is special. BUG=451319 R=viettrungluu@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/47225cba1cfeb74f6b3f6ff245c5f791a6581a7e

Patch Set 1 #

Total comments: 1

Patch Set 2 : hook mojo shell up again #

Total comments: 5

Patch Set 3 : cleaner, rebased #

Patch Set 4 : #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+210 lines, -105 lines) Patch
M mojo/common/BUILD.gn View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
A mojo/common/trace_controller_impl.h View 1 2 3 1 chunk +37 lines, -0 lines 1 comment Download
A mojo/common/trace_controller_impl.cc View 1 2 3 1 chunk +49 lines, -0 lines 0 comments Download
M mojo/common/tracing_impl.h View 1 2 3 1 chunk +11 lines, -26 lines 0 comments Download
M mojo/common/tracing_impl.cc View 1 2 1 chunk +8 lines, -39 lines 1 comment Download
M mojo/public/cpp/application/lib/service_registry.cc View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M services/fake_surfaces/fake_surfaces_service_application.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M services/fake_surfaces/fake_surfaces_service_application.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M services/native_viewport/main.cc View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M services/surfaces/surfaces_service_application.h View 2 chunks +2 lines, -0 lines 0 comments Download
M services/surfaces/surfaces_service_application.cc View 2 chunks +1 line, -2 lines 0 comments Download
M services/tracing/main.cc View 1 2 4 chunks +51 lines, -21 lines 0 comments Download
M services/tracing/tracing.mojom View 1 2 1 chunk +2 lines, -5 lines 0 comments Download
M services/view_manager/view_manager_app.h View 2 chunks +2 lines, -0 lines 0 comments Download
M services/view_manager/view_manager_app.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M services/window_manager/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M services/window_manager/main.cc View 1 2 3 chunks +3 lines, -0 lines 0 comments Download
M shell/context.cc View 1 2 3 chunks +24 lines, -4 lines 1 comment Download
M sky/tools/debugger/trace_collector.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M sky/viewer/viewer.cc View 1 2 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 14 (4 generated)
jamesr
https://codereview.chromium.org/791493006/diff/1/services/tracing/main.cc File services/tracing/main.cc (right): https://codereview.chromium.org/791493006/diff/1/services/tracing/main.cc#newcode67 services/tracing/main.cc:67: // TODO: We really should keep track of how ...
6 years ago (2014-12-19 02:00:59 UTC) #2
jamesr
6 years ago (2014-12-19 02:10:46 UTC) #3
qsr
https://codereview.chromium.org/791493006/diff/20001/shell/context.cc File shell/context.cc (right): https://codereview.chromium.org/791493006/diff/20001/shell/context.cc#newcode134 shell/context.cc:134: StrongBinding<ServiceProvider> binding_; I might be missing something, but if ...
6 years ago (2014-12-19 09:47:15 UTC) #5
jamesr
https://codereview.chromium.org/791493006/diff/20001/shell/context.cc File shell/context.cc (right): https://codereview.chromium.org/791493006/diff/20001/shell/context.cc#newcode134 shell/context.cc:134: StrongBinding<ServiceProvider> binding_; On 2014/12/19 09:47:14, qsr (OoO until Jan ...
5 years, 11 months ago (2014-12-29 18:57:59 UTC) #6
qsr
https://codereview.chromium.org/791493006/diff/20001/shell/context.cc File shell/context.cc (right): https://codereview.chromium.org/791493006/diff/20001/shell/context.cc#newcode208 shell/context.cc:208: spp.Bind(pipe.handle1.Pass()); On 2014/12/29 18:57:58, jamesr wrote: > On 2014/12/19 ...
5 years, 11 months ago (2015-01-05 13:38:31 UTC) #7
jamesr
The code you propose has types, but it's not type safe. Type safety means that ...
5 years, 11 months ago (2015-01-06 00:03:30 UTC) #8
qsr
On 2015/01/06 00:03:30, jamesr wrote: > The code you propose has types, but it's not ...
5 years, 11 months ago (2015-01-07 18:28:06 UTC) #9
jamesr
OK, this sat for a while now it's reworked a fair bit. It's now type-safer ...
5 years, 10 months ago (2015-01-29 23:29:30 UTC) #11
viettrungluu
lgtm w/nits https://codereview.chromium.org/791493006/diff/60001/mojo/common/trace_controller_impl.h File mojo/common/trace_controller_impl.h (right): https://codereview.chromium.org/791493006/diff/60001/mojo/common/trace_controller_impl.h#newcode33 mojo/common/trace_controller_impl.h:33: }; nit: DISALLOW_COPY_AND_ASSIGN https://codereview.chromium.org/791493006/diff/60001/mojo/common/tracing_impl.cc File mojo/common/tracing_impl.cc (right): ...
5 years, 10 months ago (2015-02-02 21:22:44 UTC) #13
jamesr
5 years, 10 months ago (2015-02-03 00:56:39 UTC) #14
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
47225cba1cfeb74f6b3f6ff245c5f791a6581a7e (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698