diff --git a/runtime/tools/profiling/lib/src/pprof/generated/profile.pb.dart b/runtime/tools/profiling/lib/src/pprof/generated/profile.pb.dart index 71199bfd0a3..c2775a0c2ce 100644 --- a/runtime/tools/profiling/lib/src/pprof/generated/profile.pb.dart +++ b/runtime/tools/profiling/lib/src/pprof/generated/profile.pb.dart @@ -1,19 +1,22 @@ +// This is a generated file - do not edit. // -// Generated code. Do not modify. -// source: profile.proto -// -// @dart = 2.12 +// Generated from profile.proto. + +// @dart = 3.3 // ignore_for_file: annotate_overrides, camel_case_types, comment_references -// ignore_for_file: constant_identifier_names, library_prefixes -// ignore_for_file: non_constant_identifier_names, prefer_final_fields -// ignore_for_file: unnecessary_import, unnecessary_this, unused_import +// ignore_for_file: constant_identifier_names +// ignore_for_file: curly_braces_in_flow_control_structures +// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes +// ignore_for_file: non_constant_identifier_names, prefer_relative_imports import 'dart:core' as $core; import 'package:fixnum/fixnum.dart' as $fixnum; import 'package:protobuf/protobuf.dart' as $pb; +export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions; + class Profile extends $pb.GeneratedMessage { factory Profile({ $core.Iterable? sampleType, @@ -31,73 +34,46 @@ class Profile extends $pb.GeneratedMessage { $core.Iterable<$fixnum.Int64>? comment, $fixnum.Int64? defaultSampleType, }) { - final $result = create(); - if (sampleType != null) { - $result.sampleType.addAll(sampleType); - } - if (sample != null) { - $result.sample.addAll(sample); - } - if (mapping != null) { - $result.mapping.addAll(mapping); - } - if (location != null) { - $result.location.addAll(location); - } - if (function != null) { - $result.function.addAll(function); - } - if (stringTable != null) { - $result.stringTable.addAll(stringTable); - } - if (dropFrames != null) { - $result.dropFrames = dropFrames; - } - if (keepFrames != null) { - $result.keepFrames = keepFrames; - } - if (timeNanos != null) { - $result.timeNanos = timeNanos; - } - if (durationNanos != null) { - $result.durationNanos = durationNanos; - } - if (periodType != null) { - $result.periodType = periodType; - } - if (period != null) { - $result.period = period; - } - if (comment != null) { - $result.comment.addAll(comment); - } - if (defaultSampleType != null) { - $result.defaultSampleType = defaultSampleType; - } - return $result; + final result = create(); + if (sampleType != null) result.sampleType.addAll(sampleType); + if (sample != null) result.sample.addAll(sample); + if (mapping != null) result.mapping.addAll(mapping); + if (location != null) result.location.addAll(location); + if (function != null) result.function.addAll(function); + if (stringTable != null) result.stringTable.addAll(stringTable); + if (dropFrames != null) result.dropFrames = dropFrames; + if (keepFrames != null) result.keepFrames = keepFrames; + if (timeNanos != null) result.timeNanos = timeNanos; + if (durationNanos != null) result.durationNanos = durationNanos; + if (periodType != null) result.periodType = periodType; + if (period != null) result.period = period; + if (comment != null) result.comment.addAll(comment); + if (defaultSampleType != null) result.defaultSampleType = defaultSampleType; + return result; } - Profile._() : super(); - factory Profile.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory Profile.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); + + Profile._(); + + factory Profile.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory Profile.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'Profile', package: const $pb.PackageName( _omitMessageNames ? '' : 'perfetto.third_party.perftools.profiles'), createEmptyInstance: create) - ..pc(1, _omitFieldNames ? '' : 'sampleType', $pb.PbFieldType.PM, + ..pPM(1, _omitFieldNames ? '' : 'sampleType', subBuilder: ValueType.create) - ..pc(2, _omitFieldNames ? '' : 'sample', $pb.PbFieldType.PM, - subBuilder: Sample.create) - ..pc(3, _omitFieldNames ? '' : 'mapping', $pb.PbFieldType.PM, + ..pPM(2, _omitFieldNames ? '' : 'sample', subBuilder: Sample.create) + ..pPM(3, _omitFieldNames ? '' : 'mapping', subBuilder: Mapping.create) - ..pc(4, _omitFieldNames ? '' : 'location', $pb.PbFieldType.PM, + ..pPM(4, _omitFieldNames ? '' : 'location', subBuilder: Location.create) - ..pc(5, _omitFieldNames ? '' : 'function', $pb.PbFieldType.PM, + ..pPM(5, _omitFieldNames ? '' : 'function', subBuilder: Function_.create) ..pPS(6, _omitFieldNames ? '' : 'stringTable') ..aInt64(7, _omitFieldNames ? '' : 'dropFrames') @@ -111,22 +87,19 @@ class Profile extends $pb.GeneratedMessage { ..aInt64(14, _omitFieldNames ? '' : 'defaultSampleType') ..hasRequiredFields = false; - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - Profile clone() => Profile()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + Profile clone() => deepCopy(); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') Profile copyWith(void Function(Profile) updates) => super.copyWith((message) => updates(message as Profile)) as Profile; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Profile create() => Profile._(); + @$core.override Profile createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static Profile getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -141,29 +114,29 @@ class Profile extends $pb.GeneratedMessage { /// by the sample, by convention it should be at index 0 and use /// sample_type.unit == "count". @$pb.TagNumber(1) - $core.List get sampleType => $_getList(0); + $pb.PbList get sampleType => $_getList(0); /// The set of samples recorded in this profile. @$pb.TagNumber(2) - $core.List get sample => $_getList(1); + $pb.PbList get sample => $_getList(1); /// Mapping from address ranges to the image/binary/library mapped /// into that address range. mapping[0] will be the main binary. @$pb.TagNumber(3) - $core.List get mapping => $_getList(2); + $pb.PbList get mapping => $_getList(2); /// Useful program location @$pb.TagNumber(4) - $core.List get location => $_getList(3); + $pb.PbList get location => $_getList(3); /// Functions referenced by locations @$pb.TagNumber(5) - $core.List get function => $_getList(4); + $pb.PbList get function => $_getList(4); /// A common table for strings referenced by various messages. /// string_table[0] must always be "". @$pb.TagNumber(6) - $core.List<$core.String> get stringTable => $_getList(5); + $pb.PbList<$core.String> get stringTable => $_getList(5); /// frames with Function.function_name fully matching the following /// regexp will be dropped from the samples, along with their successors. @@ -171,14 +144,11 @@ class Profile extends $pb.GeneratedMessage { @$pb.TagNumber(7) $fixnum.Int64 get dropFrames => $_getI64(6); @$pb.TagNumber(7) - set dropFrames($fixnum.Int64 v) { - $_setInt64(6, v); - } - + set dropFrames($fixnum.Int64 value) => $_setInt64(6, value); @$pb.TagNumber(7) $core.bool hasDropFrames() => $_has(6); @$pb.TagNumber(7) - void clearDropFrames() => clearField(7); + void clearDropFrames() => $_clearField(7); /// frames with Function.function_name fully matching the following /// regexp will be kept, even if it matches drop_functions. @@ -186,54 +156,42 @@ class Profile extends $pb.GeneratedMessage { @$pb.TagNumber(8) $fixnum.Int64 get keepFrames => $_getI64(7); @$pb.TagNumber(8) - set keepFrames($fixnum.Int64 v) { - $_setInt64(7, v); - } - + set keepFrames($fixnum.Int64 value) => $_setInt64(7, value); @$pb.TagNumber(8) $core.bool hasKeepFrames() => $_has(7); @$pb.TagNumber(8) - void clearKeepFrames() => clearField(8); + void clearKeepFrames() => $_clearField(8); /// Time of collection (UTC) represented as nanoseconds past the epoch. @$pb.TagNumber(9) $fixnum.Int64 get timeNanos => $_getI64(8); @$pb.TagNumber(9) - set timeNanos($fixnum.Int64 v) { - $_setInt64(8, v); - } - + set timeNanos($fixnum.Int64 value) => $_setInt64(8, value); @$pb.TagNumber(9) $core.bool hasTimeNanos() => $_has(8); @$pb.TagNumber(9) - void clearTimeNanos() => clearField(9); + void clearTimeNanos() => $_clearField(9); /// Duration of the profile, if a duration makes sense. @$pb.TagNumber(10) $fixnum.Int64 get durationNanos => $_getI64(9); @$pb.TagNumber(10) - set durationNanos($fixnum.Int64 v) { - $_setInt64(9, v); - } - + set durationNanos($fixnum.Int64 value) => $_setInt64(9, value); @$pb.TagNumber(10) $core.bool hasDurationNanos() => $_has(9); @$pb.TagNumber(10) - void clearDurationNanos() => clearField(10); + void clearDurationNanos() => $_clearField(10); /// The kind of events between sampled ocurrences. /// e.g [ "cpu","cycles" ] or [ "heap","bytes" ] @$pb.TagNumber(11) ValueType get periodType => $_getN(10); @$pb.TagNumber(11) - set periodType(ValueType v) { - setField(11, v); - } - + set periodType(ValueType value) => $_setField(11, value); @$pb.TagNumber(11) $core.bool hasPeriodType() => $_has(10); @$pb.TagNumber(11) - void clearPeriodType() => clearField(11); + void clearPeriodType() => $_clearField(11); @$pb.TagNumber(11) ValueType ensurePeriodType() => $_ensure(10); @@ -241,33 +199,27 @@ class Profile extends $pb.GeneratedMessage { @$pb.TagNumber(12) $fixnum.Int64 get period => $_getI64(11); @$pb.TagNumber(12) - set period($fixnum.Int64 v) { - $_setInt64(11, v); - } - + set period($fixnum.Int64 value) => $_setInt64(11, value); @$pb.TagNumber(12) $core.bool hasPeriod() => $_has(11); @$pb.TagNumber(12) - void clearPeriod() => clearField(12); + void clearPeriod() => $_clearField(12); /// Freeform text associated to the profile. /// Indices into string table. @$pb.TagNumber(13) - $core.List<$fixnum.Int64> get comment => $_getList(12); + $pb.PbList<$fixnum.Int64> get comment => $_getList(12); /// Index into the string table of the type of the preferred sample /// value. If unset, clients should default to the last sample value. @$pb.TagNumber(14) $fixnum.Int64 get defaultSampleType => $_getI64(13); @$pb.TagNumber(14) - set defaultSampleType($fixnum.Int64 v) { - $_setInt64(13, v); - } - + set defaultSampleType($fixnum.Int64 value) => $_setInt64(13, value); @$pb.TagNumber(14) $core.bool hasDefaultSampleType() => $_has(13); @$pb.TagNumber(14) - void clearDefaultSampleType() => clearField(14); + void clearDefaultSampleType() => $_clearField(14); } /// ValueType describes the semantics and measurement units of a value. @@ -276,22 +228,20 @@ class ValueType extends $pb.GeneratedMessage { $fixnum.Int64? type, $fixnum.Int64? unit, }) { - final $result = create(); - if (type != null) { - $result.type = type; - } - if (unit != null) { - $result.unit = unit; - } - return $result; + final result = create(); + if (type != null) result.type = type; + if (unit != null) result.unit = unit; + return result; } - ValueType._() : super(); - factory ValueType.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory ValueType.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); + + ValueType._(); + + factory ValueType.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory ValueType.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'ValueType', @@ -302,22 +252,19 @@ class ValueType extends $pb.GeneratedMessage { ..aInt64(2, _omitFieldNames ? '' : 'unit') ..hasRequiredFields = false; - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - ValueType clone() => ValueType()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + ValueType clone() => deepCopy(); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') ValueType copyWith(void Function(ValueType) updates) => super.copyWith((message) => updates(message as ValueType)) as ValueType; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static ValueType create() => ValueType._(); + @$core.override ValueType createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static ValueType getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -327,27 +274,21 @@ class ValueType extends $pb.GeneratedMessage { @$pb.TagNumber(1) $fixnum.Int64 get type => $_getI64(0); @$pb.TagNumber(1) - set type($fixnum.Int64 v) { - $_setInt64(0, v); - } - + set type($fixnum.Int64 value) => $_setInt64(0, value); @$pb.TagNumber(1) $core.bool hasType() => $_has(0); @$pb.TagNumber(1) - void clearType() => clearField(1); + void clearType() => $_clearField(1); /// Index into string table. @$pb.TagNumber(2) $fixnum.Int64 get unit => $_getI64(1); @$pb.TagNumber(2) - set unit($fixnum.Int64 v) { - $_setInt64(1, v); - } - + set unit($fixnum.Int64 value) => $_setInt64(1, value); @$pb.TagNumber(2) $core.bool hasUnit() => $_has(1); @$pb.TagNumber(2) - void clearUnit() => clearField(2); + void clearUnit() => $_clearField(2); } /// Each Sample records values encountered in some program @@ -360,25 +301,21 @@ class Sample extends $pb.GeneratedMessage { $core.Iterable<$fixnum.Int64>? value, $core.Iterable