@@ -131,8 +131,6 @@ Map<String, Function> _typeFactories = {
131
131
'Instance' : Instance .parse,
132
132
'@Isolate' : IsolateRef .parse,
133
133
'Isolate' : Isolate .parse,
134
- '@IsolateGroup' : IsolateGroupRef .parse,
135
- 'IsolateGroup' : IsolateGroup .parse,
136
134
'InboundReferences' : InboundReferences .parse,
137
135
'InboundReference' : InboundReference .parse,
138
136
'InstanceSet' : InstanceSet .parse,
@@ -190,9 +188,7 @@ Map<String, List<String>> _methodReturnTypes = {
190
188
'getInboundReferences' : const ['InboundReferences' , 'Sentinel' ],
191
189
'getInstances' : const ['InstanceSet' ],
192
190
'getIsolate' : const ['Isolate' , 'Sentinel' ],
193
- 'getIsolateGroup' : const ['IsolateGroup' , 'Sentinel' ],
194
191
'getMemoryUsage' : const ['MemoryUsage' , 'Sentinel' ],
195
- 'getIsolateGroupMemoryUsage' : const ['MemoryUsage' , 'Sentinel' ],
196
192
'getScripts' : const ['ScriptList' ],
197
193
'getObject' : const ['Obj' , 'Sentinel' ],
198
194
'getRetainingPath' : const ['RetainingPath' ],
@@ -510,21 +506,6 @@ abstract class VmServiceInterface {
510
506
/// The return value can be one of [Isolate] or [Sentinel] .
511
507
Future <dynamic > getIsolate (String isolateId);
512
508
513
- /// The `getIsolateGroup` RPC is used to lookup an `IsolateGroup` object by
514
- /// its `id` .
515
- ///
516
- /// If `isolateGroupId` refers to an isolate group which has exited, then the
517
- /// `Expired` [Sentinel] is returned.
518
- ///
519
- /// `IsolateGroup` `id` is an opaque identifier that can be fetched from an
520
- /// `IsolateGroup` . List of active `IsolateGroup` 's, for example, is available
521
- /// on `VM` object.
522
- ///
523
- /// See [IsolateGroup] , [VM] .
524
- ///
525
- /// The return value can be one of [IsolateGroup] or [Sentinel] .
526
- Future <dynamic > getIsolateGroup (String isolateGroupId);
527
-
528
509
/// The `getMemoryUsage` RPC is used to lookup an isolate's memory usage
529
510
/// statistics by its `id` .
530
511
///
@@ -536,17 +517,6 @@ abstract class VmServiceInterface {
536
517
/// The return value can be one of [MemoryUsage] or [Sentinel] .
537
518
Future <dynamic > getMemoryUsage (String isolateId);
538
519
539
- /// The `getIsolateGroupMemoryUsage` RPC is used to lookup an isolate group's
540
- /// memory usage statistics by its `id` .
541
- ///
542
- /// If `isolateGroupId` refers to an isolate group which has exited, then the
543
- /// `Expired` [Sentinel] is returned.
544
- ///
545
- /// See [IsolateGroup] .
546
- ///
547
- /// The return value can be one of [MemoryUsage] or [Sentinel] .
548
- Future <dynamic > getIsolateGroupMemoryUsage (String isolateGroupId);
549
-
550
520
/// The `getScripts` RPC is used to retrieve a `ScriptList` containing all
551
521
/// scripts for an isolate based on the isolate's `isolateId` .
552
522
///
@@ -1057,21 +1027,11 @@ class VmServerConnection {
1057
1027
params['isolateId' ],
1058
1028
);
1059
1029
break ;
1060
- case 'getIsolateGroup' :
1061
- response = await _serviceImplementation.getIsolateGroup (
1062
- params['isolateGroupId' ],
1063
- );
1064
- break ;
1065
1030
case 'getMemoryUsage' :
1066
1031
response = await _serviceImplementation.getMemoryUsage (
1067
1032
params['isolateId' ],
1068
1033
);
1069
1034
break ;
1070
- case 'getIsolateGroupMemoryUsage' :
1071
- response = await _serviceImplementation.getIsolateGroupMemoryUsage (
1072
- params['isolateGroupId' ],
1073
- );
1074
- break ;
1075
1035
case 'getScripts' :
1076
1036
response = await _serviceImplementation.getScripts (
1077
1037
params['isolateId' ],
@@ -1508,22 +1468,11 @@ class VmService implements VmServiceInterface {
1508
1468
return _call ('getIsolate' , {'isolateId' : isolateId});
1509
1469
}
1510
1470
1511
- @override
1512
- Future <dynamic > getIsolateGroup (String isolateGroupId) {
1513
- return _call ('getIsolateGroup' , {'isolateGroupId' : isolateGroupId});
1514
- }
1515
-
1516
1471
@override
1517
1472
Future <dynamic > getMemoryUsage (String isolateId) {
1518
1473
return _call ('getMemoryUsage' , {'isolateId' : isolateId});
1519
1474
}
1520
1475
1521
- @override
1522
- Future <dynamic > getIsolateGroupMemoryUsage (String isolateGroupId) {
1523
- return _call (
1524
- 'getIsolateGroupMemoryUsage' , {'isolateGroupId' : isolateGroupId});
1525
- }
1526
-
1527
1476
@override
1528
1477
Future <ScriptList > getScripts (String isolateId) {
1529
1478
return _call ('getScripts' , {'isolateId' : isolateId});
@@ -1750,7 +1699,6 @@ class VmService implements VmServiceInterface {
1750
1699
void dispose () {
1751
1700
_streamSub.cancel ();
1752
1701
_completers.values.forEach ((c) => c.completeError ('disposed' ));
1753
- _completers.clear ();
1754
1702
if (_disposeHandler != null ) {
1755
1703
_disposeHandler ();
1756
1704
}
@@ -4496,105 +4444,6 @@ class Isolate extends Response {
4496
4444
String toString () => '[Isolate]' ;
4497
4445
}
4498
4446
4499
- /// `IsolateGroupRef` is a reference to an `IsolateGroup` object.
4500
- class IsolateGroupRef extends Response {
4501
- static IsolateGroupRef parse (Map <String , dynamic > json) =>
4502
- json == null ? null : IsolateGroupRef ._fromJson (json);
4503
-
4504
- /// The id which is passed to the getIsolateGroup RPC to load this isolate
4505
- /// group.
4506
- String id;
4507
-
4508
- /// A numeric id for this isolate group, represented as a string. Unique.
4509
- String number;
4510
-
4511
- /// A name identifying this isolate group. Not guaranteed to be unique.
4512
- String name;
4513
-
4514
- IsolateGroupRef ({
4515
- @required this .id,
4516
- @required this .number,
4517
- @required this .name,
4518
- });
4519
- IsolateGroupRef ._fromJson (Map <String , dynamic > json) : super ._fromJson (json) {
4520
- id = json['id' ];
4521
- number = json['number' ];
4522
- name = json['name' ];
4523
- }
4524
-
4525
- @override
4526
- Map <String , dynamic > toJson () {
4527
- var json = < String , dynamic > {};
4528
- json['type' ] = '@IsolateGroup' ;
4529
- json.addAll ({
4530
- 'id' : id,
4531
- 'number' : number,
4532
- 'name' : name,
4533
- });
4534
- return json;
4535
- }
4536
-
4537
- int get hashCode => id.hashCode;
4538
-
4539
- operator == (other) => other is IsolateGroupRef && id == other.id;
4540
-
4541
- String toString () =>
4542
- '[IsolateGroupRef type: ${type }, id: ${id }, number: ${number }, name: ${name }]' ;
4543
- }
4544
-
4545
- /// An `Isolate` object provides information about one isolate in the VM.
4546
- class IsolateGroup extends Response {
4547
- static IsolateGroup parse (Map <String , dynamic > json) =>
4548
- json == null ? null : IsolateGroup ._fromJson (json);
4549
-
4550
- /// The id which is passed to the getIsolate RPC to reload this isolate.
4551
- String id;
4552
-
4553
- /// A numeric id for this isolate, represented as a string. Unique.
4554
- String number;
4555
-
4556
- /// A name identifying this isolate. Not guaranteed to be unique.
4557
- String name;
4558
-
4559
- /// A list of all isolates in this isolate group.
4560
- List <IsolateRef > isolates;
4561
-
4562
- IsolateGroup ({
4563
- @required this .id,
4564
- @required this .number,
4565
- @required this .name,
4566
- @required this .isolates,
4567
- });
4568
- IsolateGroup ._fromJson (Map <String , dynamic > json) : super ._fromJson (json) {
4569
- id = json['id' ];
4570
- number = json['number' ];
4571
- name = json['name' ];
4572
- isolates = List <IsolateRef >.from (
4573
- createServiceObject (json['isolates' ], const ['IsolateRef' ]));
4574
- }
4575
-
4576
- @override
4577
- Map <String , dynamic > toJson () {
4578
- var json = < String , dynamic > {};
4579
- json['type' ] = 'IsolateGroup' ;
4580
- json.addAll ({
4581
- 'id' : id,
4582
- 'number' : number,
4583
- 'name' : name,
4584
- 'isolates' : isolates.map ((f) => f.toJson ()).toList (),
4585
- });
4586
- return json;
4587
- }
4588
-
4589
- int get hashCode => id.hashCode;
4590
-
4591
- operator == (other) => other is IsolateGroup && id == other.id;
4592
-
4593
- String toString () => '[IsolateGroup ' //
4594
- 'type: ${type }, id: ${id }, number: ${number }, name: ${name }, ' //
4595
- 'isolates: ${isolates }]' ;
4596
- }
4597
-
4598
4447
/// See [getInboundReferences] .
4599
4448
class InboundReferences extends Response {
4600
4449
static InboundReferences parse (Map <String , dynamic > json) =>
@@ -6387,9 +6236,6 @@ class VM extends Response {
6387
6236
/// A list of isolates running in the VM.
6388
6237
List <IsolateRef > isolates;
6389
6238
6390
- /// A list of isolate groups running in the VM.
6391
- List <IsolateGroupRef > isolateGroups;
6392
-
6393
6239
VM ({
6394
6240
@required this .name,
6395
6241
@required this .architectureBits,
@@ -6400,7 +6246,6 @@ class VM extends Response {
6400
6246
@required this .pid,
6401
6247
@required this .startTime,
6402
6248
@required this .isolates,
6403
- @required this .isolateGroups,
6404
6249
});
6405
6250
VM ._fromJson (Map <String , dynamic > json) : super ._fromJson (json) {
6406
6251
name = json['name' ];
@@ -6413,8 +6258,6 @@ class VM extends Response {
6413
6258
startTime = json['startTime' ];
6414
6259
isolates = List <IsolateRef >.from (
6415
6260
createServiceObject (json['isolates' ], const ['IsolateRef' ]));
6416
- isolateGroups = List <IsolateGroupRef >.from (
6417
- createServiceObject (json['isolateGroups' ], const ['IsolateGroupRef' ]));
6418
6261
}
6419
6262
6420
6263
@override
@@ -6431,7 +6274,6 @@ class VM extends Response {
6431
6274
'pid' : pid,
6432
6275
'startTime' : startTime,
6433
6276
'isolates' : isolates.map ((f) => f.toJson ()).toList (),
6434
- 'isolateGroups' : isolateGroups.map ((f) => f.toJson ()).toList (),
6435
6277
});
6436
6278
return json;
6437
6279
}
0 commit comments