Add enable_mojo_tracing build argument

Desktop / Chromium - Dániel Vince [inf.u-szeged.hu] - 12 October 2017 15:58 EDT

Implement a build option to insert trace points to the Mojo templates when the enable_mojo_tracing gn flag is enabled. It's useful when debugging Mojo comminucation. A large number of trace points are generated, which increases code size. For this reason this flag is false by default.

It also turns MOJO_TRACE_ENABLED macro to the build flag.

Change-Id: I747f5ec77e0501c391642afa4c751b0a807c434d Reviewed-on: https://chromium-review.googlesource.com/711842

3643a97 Add enable_mojo_tracing build argument.
AUTHORS | 1 +
mojo/public/cpp/bindings/BUILD.gn | 12 ++++++++++++
.../cpp_templates/interface_definition.tmpl | 21 +++++++++++++++++++++
.../bindings/generators/cpp_templates/module.h.tmpl | 5 +++++
4 files changed, 39 insertions(+)

Upstream: git.chromium.org


  • Share