| Index: mojo/dart/packages/mojo_services/lib/tracing/tracing.mojom.dart
|
| diff --git a/mojo/dart/packages/mojo_services/lib/tracing/tracing.mojom.dart b/mojo/dart/packages/mojo_services/lib/tracing/tracing.mojom.dart
|
| index a7c2f5e1e8b2ee308b583ba2fcafc6f2edc896fa..7a9de62bcbe1cd28c49bbb4672cdb2dfb3180e0a 100644
|
| --- a/mojo/dart/packages/mojo_services/lib/tracing/tracing.mojom.dart
|
| +++ b/mojo/dart/packages/mojo_services/lib/tracing/tracing.mojom.dart
|
| @@ -5,9 +5,12 @@
|
| library tracing_mojom;
|
|
|
| import 'dart:async';
|
| +import 'dart:collection';
|
|
|
| import 'package:mojo/bindings.dart' as bindings;
|
| import 'package:mojo/core.dart' as core;
|
| +import 'package:mojo/mojo/bindings/types/mojom_types.mojom.dart' as mojom_types;
|
| +import 'package:mojo/mojo/bindings/types/service_describer.mojom.dart' as service_describer;
|
|
|
|
|
|
|
| @@ -83,6 +86,27 @@ class _TraceProviderStartTracingParams extends bindings.Struct {
|
| 'Object containing handles cannot be encoded to JSON.');
|
| }
|
| }
|
| +mojom_types.MojomStruct _tracing_TraceProvider_StartTracing_Params__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = '_TraceProviderStartTracingParams'
|
| + ..fullIdentifier = 'tracing._TraceProviderStartTracingParams')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Categories')
|
| + ..type = (new mojom_types.Type()
|
| +..stringType = (new mojom_types.StringType()..nullable = false)),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Recorder')
|
| + ..type = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| +
|
| + ..identifier = '_tracing_TraceRecorder__'
|
| + ..typeKey = '_tracing_TraceRecorder__'
|
| + )),
|
| + ];
|
| +}
|
|
|
|
|
| class _TraceProviderStopTracingParams extends bindings.Struct {
|
| @@ -141,6 +165,13 @@ class _TraceProviderStopTracingParams extends bindings.Struct {
|
| return map;
|
| }
|
| }
|
| +mojom_types.MojomStruct _tracing_TraceProvider_StopTracing_Params__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = '_TraceProviderStopTracingParams'
|
| + ..fullIdentifier = 'tracing._TraceProviderStopTracingParams')
|
| + ..fields = <mojom_types.StructField>[];
|
| +}
|
|
|
|
|
| class _TraceRecorderRecordParams extends bindings.Struct {
|
| @@ -208,6 +239,18 @@ class _TraceRecorderRecordParams extends bindings.Struct {
|
| return map;
|
| }
|
| }
|
| +mojom_types.MojomStruct _tracing_TraceRecorder_Record_Params__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = '_TraceRecorderRecordParams'
|
| + ..fullIdentifier = 'tracing._TraceRecorderRecordParams')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Json')
|
| + ..type = (new mojom_types.Type()
|
| +..stringType = (new mojom_types.StringType()..nullable = false)),
|
| + ];
|
| +}
|
|
|
|
|
| class _TraceCollectorStartParams extends bindings.Struct {
|
| @@ -282,6 +325,25 @@ class _TraceCollectorStartParams extends bindings.Struct {
|
| 'Object containing handles cannot be encoded to JSON.');
|
| }
|
| }
|
| +mojom_types.MojomStruct _tracing_TraceCollector_Start_Params__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = '_TraceCollectorStartParams'
|
| + ..fullIdentifier = 'tracing._TraceCollectorStartParams')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Stream')
|
| + ..type = (new mojom_types.Type()
|
| +..handleType = (new mojom_types.HandleType()
|
| +..kind = mojom_types.HandleTypeKind.dataPipeProducer
|
| +..nullable = false)),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Categories')
|
| + ..type = (new mojom_types.Type()
|
| +..stringType = (new mojom_types.StringType()..nullable = false)),
|
| + ];
|
| +}
|
|
|
|
|
| class _TraceCollectorStopAndFlushParams extends bindings.Struct {
|
| @@ -340,10 +402,45 @@ class _TraceCollectorStopAndFlushParams extends bindings.Struct {
|
| return map;
|
| }
|
| }
|
| +mojom_types.MojomStruct _tracing_TraceCollector_StopAndFlush_Params__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = '_TraceCollectorStopAndFlushParams'
|
| + ..fullIdentifier = 'tracing._TraceCollectorStopAndFlushParams')
|
| + ..fields = <mojom_types.StructField>[];
|
| +}
|
| +
|
|
|
| const int _TraceProvider_startTracingName = 0;
|
| const int _TraceProvider_stopTracingName = 1;
|
|
|
| +mojom_types.MojomInterface _tracing_TraceProvider__() {
|
| + return new mojom_types.MojomInterface()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = 'TraceProvider'
|
| + ..fullIdentifier = 'tracing.TraceProvider')
|
| + ..interfaceName = 'TraceProvider'
|
| + ..methods = <int, mojom_types.MojomMethod>{
|
| +_TraceProvider_startTracingName: new mojom_types.MojomMethod()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'StartTracing')
|
| + ..ordinal = _TraceProvider_startTracingName..parameters = _tracing_TraceProvider_StartTracing_Params__(),_TraceProvider_stopTracingName: new mojom_types.MojomMethod()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'StopTracing')
|
| + ..ordinal = _TraceProvider_stopTracingName..parameters = _tracing_TraceProvider_StopTracing_Params__(),
|
| + };
|
| +}
|
| +
|
| +class _TraceProviderServiceDescription implements service_describer.ServiceDescription {
|
| +dynamic getTopLevelInterface([Function responseFactory = null]) {
|
| + return _tracing_TraceProvider__();
|
| + }
|
| + dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) {
|
| + return getAllMojomTypeDefinitions()[typeKey];
|
| + }
|
| + dynamic getAllTypeDefinitions([Function responseFactory = null]) {
|
| + return getAllMojomTypeDefinitions();
|
| + }
|
| +}
|
| +
|
| abstract class TraceProvider {
|
| static const String serviceName = "tracing::TraceProvider";
|
| void startTracing(String categories, Object recorder);
|
| @@ -366,6 +463,9 @@ class _TraceProviderProxyImpl extends bindings.Proxy {
|
| return new _TraceProviderProxyImpl.fromEndpoint(endpoint);
|
| }
|
|
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _TraceProviderServiceDescription();
|
| +
|
| void handleResponse(bindings.ServiceMessage message) {
|
| switch (message.header.type) {
|
| default:
|
| @@ -523,10 +623,39 @@ class TraceProviderStub extends bindings.Stub {
|
| }
|
|
|
| int get version => 0;
|
| +
|
| +
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _TraceProviderServiceDescription();
|
| }
|
|
|
| const int _TraceRecorder_recordName = 0;
|
|
|
| +mojom_types.MojomInterface _tracing_TraceRecorder__() {
|
| + return new mojom_types.MojomInterface()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = 'TraceRecorder'
|
| + ..fullIdentifier = 'tracing.TraceRecorder')
|
| + ..interfaceName = 'TraceRecorder'
|
| + ..methods = <int, mojom_types.MojomMethod>{
|
| +_TraceRecorder_recordName: new mojom_types.MojomMethod()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Record')
|
| + ..ordinal = _TraceRecorder_recordName..parameters = _tracing_TraceRecorder_Record_Params__(),
|
| + };
|
| +}
|
| +
|
| +class _TraceRecorderServiceDescription implements service_describer.ServiceDescription {
|
| +dynamic getTopLevelInterface([Function responseFactory = null]) {
|
| + return _tracing_TraceRecorder__();
|
| + }
|
| + dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) {
|
| + return getAllMojomTypeDefinitions()[typeKey];
|
| + }
|
| + dynamic getAllTypeDefinitions([Function responseFactory = null]) {
|
| + return getAllMojomTypeDefinitions();
|
| + }
|
| +}
|
| +
|
| abstract class TraceRecorder {
|
| static const String serviceName = null;
|
| void record(String json);
|
| @@ -548,6 +677,9 @@ class _TraceRecorderProxyImpl extends bindings.Proxy {
|
| return new _TraceRecorderProxyImpl.fromEndpoint(endpoint);
|
| }
|
|
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _TraceRecorderServiceDescription();
|
| +
|
| void handleResponse(bindings.ServiceMessage message) {
|
| switch (message.header.type) {
|
| default:
|
| @@ -691,11 +823,42 @@ class TraceRecorderStub extends bindings.Stub {
|
| }
|
|
|
| int get version => 0;
|
| +
|
| +
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _TraceRecorderServiceDescription();
|
| }
|
|
|
| const int _TraceCollector_startName = 0;
|
| const int _TraceCollector_stopAndFlushName = 1;
|
|
|
| +mojom_types.MojomInterface _tracing_TraceCollector__() {
|
| + return new mojom_types.MojomInterface()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = 'TraceCollector'
|
| + ..fullIdentifier = 'tracing.TraceCollector')
|
| + ..interfaceName = 'TraceCollector'
|
| + ..methods = <int, mojom_types.MojomMethod>{
|
| +_TraceCollector_startName: new mojom_types.MojomMethod()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Start')
|
| + ..ordinal = _TraceCollector_startName..parameters = _tracing_TraceCollector_Start_Params__(),_TraceCollector_stopAndFlushName: new mojom_types.MojomMethod()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'StopAndFlush')
|
| + ..ordinal = _TraceCollector_stopAndFlushName..parameters = _tracing_TraceCollector_StopAndFlush_Params__(),
|
| + };
|
| +}
|
| +
|
| +class _TraceCollectorServiceDescription implements service_describer.ServiceDescription {
|
| +dynamic getTopLevelInterface([Function responseFactory = null]) {
|
| + return _tracing_TraceCollector__();
|
| + }
|
| + dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) {
|
| + return getAllMojomTypeDefinitions()[typeKey];
|
| + }
|
| + dynamic getAllTypeDefinitions([Function responseFactory = null]) {
|
| + return getAllMojomTypeDefinitions();
|
| + }
|
| +}
|
| +
|
| abstract class TraceCollector {
|
| static const String serviceName = "tracing::TraceCollector";
|
| void start(core.MojoDataPipeProducer stream, String categories);
|
| @@ -718,6 +881,9 @@ class _TraceCollectorProxyImpl extends bindings.Proxy {
|
| return new _TraceCollectorProxyImpl.fromEndpoint(endpoint);
|
| }
|
|
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _TraceCollectorServiceDescription();
|
| +
|
| void handleResponse(bindings.ServiceMessage message) {
|
| switch (message.header.type) {
|
| default:
|
| @@ -875,6 +1041,53 @@ class TraceCollectorStub extends bindings.Stub {
|
| }
|
|
|
| int get version => 0;
|
| +
|
| +
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _TraceCollectorServiceDescription();
|
| +}
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +Map<String, mojom_types.UserDefinedType> _initDescriptions() {
|
| + var map = new HashMap<String, mojom_types.UserDefinedType>();
|
| +map["_tracing_TraceProvider_StartTracing_Params__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _tracing_TraceProvider_StartTracing_Params__();
|
| +map["_tracing_TraceProvider_StopTracing_Params__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _tracing_TraceProvider_StopTracing_Params__();
|
| +map["_tracing_TraceRecorder_Record_Params__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _tracing_TraceRecorder_Record_Params__();
|
| +map["_tracing_TraceCollector_Start_Params__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _tracing_TraceCollector_Start_Params__();
|
| +map["_tracing_TraceCollector_StopAndFlush_Params__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _tracing_TraceCollector_StopAndFlush_Params__();
|
| +map["_tracing_TraceProvider__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..interfaceType = _tracing_TraceProvider__();
|
| +map["_tracing_TraceRecorder__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..interfaceType = _tracing_TraceRecorder__();
|
| +map["_tracing_TraceCollector__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..interfaceType = _tracing_TraceCollector__();
|
| +
|
| + return map;
|
| }
|
|
|
| +var _MojomDesc;
|
| +Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() {
|
| + if (_MojomDesc == null) {
|
| + _MojomDesc = _initDescriptions();
|
| + }
|
| + return _MojomDesc;
|
| +}
|
|
|
|
|