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

Issue 1409223004: mandoline: Add automatic tracing at mojo call sites. (Closed)

Created:
5 years, 2 months ago by Elliot Glaysher
Modified:
5 years, 2 months ago
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, penghuang+watch-mandoline_chromium.org, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mandoline: Add automatic tracing at mojo call sites. This modifies the mojo bindings generator to wrap all calls to implementation of mojo interfaces in TRACE_EVENTs. It also makes various mandoline pieces connect to mojo:tracing and names threads so the traces are nicer. With this patch, --trace-startup gives useful traces now. Further work should be done to manually annotate callback methods with TRACE_EVENTS, but traces now have useful data. BUG=534895 R=ben@chromium.org,yzshen@chromium.org TBR=tsepez@chromium.org Committed: https://crrev.com/1fecf1452526cf274927645acc06c8a6d10ee99b Cr-Commit-Position: refs/heads/master@{#355901}

Patch Set 1 #

Patch Set 2 : Depend on //base explicitly. #

Patch Set 3 : We still build this with gyp. #

Patch Set 4 : #undef PostMessage on Windows. #

Patch Set 5 : Remove stray line. #

Total comments: 1

Patch Set 6 : Rename PostMessage in service_port_service.mojom so it doesn't conflict with Windows. #

Patch Set 7 : Change another 'PostMessage' #

Patch Set 8 : Rebase to ToT #

Patch Set 9 : Safety rebase to ToT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -20 lines) Patch
M components/html_viewer/global_state.h View 1 2 3 4 5 6 7 2 chunks +3 lines, -0 lines 0 comments Download
M components/html_viewer/global_state.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -1 line 0 comments Download
M components/mus/mus_app.h View 1 chunk +0 lines, -1 line 0 comments Download
M components/mus/mus_app.cc View 1 chunk +0 lines, -1 line 0 comments Download
M components/pdf_viewer/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M components/pdf_viewer/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M components/pdf_viewer/pdf_viewer.cc View 1 2 3 4 5 6 7 3 chunks +7 lines, -0 lines 0 comments Download
M components/web_view/frame_connection.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/navigator_connect/service_port_service_impl.h View 1 2 3 4 5 1 chunk +4 lines, -3 lines 0 comments Download
M content/browser/navigator_connect/service_port_service_impl.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M content/child/navigator_connect/service_port_provider.h View 1 2 3 4 5 1 chunk +4 lines, -4 lines 0 comments Download
M content/child/navigator_connect/service_port_provider.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M content/common/service_port_service.mojom View 1 2 3 4 5 1 chunk +5 lines, -5 lines 0 comments Download
M mandoline/services/core_services/core_services_application_delegate.h View 2 chunks +2 lines, -0 lines 0 comments Download
M mandoline/services/core_services/core_services_application_delegate.cc View 3 chunks +4 lines, -0 lines 0 comments Download
M third_party/mojo/mojom_bindings_generator_explicit.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/mojo/src/mojo/public/interfaces/bindings/tests/sample_service.mojom View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M third_party/mojo/src/mojo/public/tools/bindings/generators/cpp_templates/interface_definition.tmpl View 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/mojo/src/mojo/public/tools/bindings/generators/cpp_templates/module.cc.tmpl View 4 5 1 chunk +1 line, -0 lines 0 comments Download
M third_party/mojo/src/mojo/public/tools/bindings/mojom.gni View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 26 (11 generated)
Elliot Glaysher
5 years, 2 months ago (2015-10-21 23:18:06 UTC) #3
yzshen1
https://codereview.chromium.org/1409223004/diff/20002/third_party/mojo/src/mojo/public/tools/bindings/generators/cpp_templates/module.cc.tmpl File third_party/mojo/src/mojo/public/tools/bindings/generators/cpp_templates/module.cc.tmpl (right): https://codereview.chromium.org/1409223004/diff/20002/third_party/mojo/src/mojo/public/tools/bindings/generators/cpp_templates/module.cc.tmpl#newcode37 third_party/mojo/src/mojo/public/tools/bindings/generators/cpp_templates/module.cc.tmpl:37: #ifdef PostMessage Is it because some mojom files define ...
5 years, 2 months ago (2015-10-21 23:23:54 UTC) #5
sky
On 2015/10/21 23:23:54, yzshen1 wrote: > https://codereview.chromium.org/1409223004/diff/20002/third_party/mojo/src/mojo/public/tools/bindings/generators/cpp_templates/module.cc.tmpl > File > third_party/mojo/src/mojo/public/tools/bindings/generators/cpp_templates/module.cc.tmpl > (right): > > ...
5 years, 2 months ago (2015-10-21 23:27:42 UTC) #6
Elliot Glaysher
sky, yzshen: ptal. mek: I've removed the name "PostMessage" from some mojom files since it ...
5 years, 2 months ago (2015-10-22 19:07:38 UTC) #8
Marijn Kruisselbrink
On 2015/10/21 at 23:23:54, yzshen wrote: > https://codereview.chromium.org/1409223004/diff/20002/third_party/mojo/src/mojo/public/tools/bindings/generators/cpp_templates/module.cc.tmpl > File third_party/mojo/src/mojo/public/tools/bindings/generators/cpp_templates/module.cc.tmpl (right): > > https://codereview.chromium.org/1409223004/diff/20002/third_party/mojo/src/mojo/public/tools/bindings/generators/cpp_templates/module.cc.tmpl#newcode37 ...
5 years, 2 months ago (2015-10-22 19:28:13 UTC) #9
yzshen1
On 2015/10/22 19:28:13, Marijn Kruisselbrink wrote: > On 2015/10/21 at 23:23:54, yzshen wrote: > > ...
5 years, 2 months ago (2015-10-22 19:56:05 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1409223004/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1409223004/120001
5 years, 2 months ago (2015-10-22 21:51:38 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/111975)
5 years, 2 months ago (2015-10-22 21:59:56 UTC) #14
Elliot Glaysher
sky->ben: toplevel owners stamp (there are so many directories.)
5 years, 2 months ago (2015-10-22 22:06:53 UTC) #16
Ben Goodger (Google)
lgtm
5 years, 2 months ago (2015-10-23 20:44:21 UTC) #17
Elliot Glaysher
+Tom to the TBR line because for some reason, Ben's top level approval isn't being ...
5 years, 2 months ago (2015-10-23 20:48:34 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1409223004/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1409223004/140001
5 years, 2 months ago (2015-10-23 20:49:40 UTC) #23
Tom Sepez
Mojom LGTM.
5 years, 2 months ago (2015-10-23 20:55:55 UTC) #24
commit-bot: I haz the power
Committed patchset #9 (id:140001)
5 years, 2 months ago (2015-10-23 22:08:07 UTC) #25
commit-bot: I haz the power
5 years, 2 months ago (2015-10-23 22:09:09 UTC) #26
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/1fecf1452526cf274927645acc06c8a6d10ee99b
Cr-Commit-Position: refs/heads/master@{#355901}

Powered by Google App Engine
This is Rietveld 408576698