Revert "Reland "Enable caching of CPU samples collected at application startup (#89600)" (#90611)" (#91754)
This reverts commit e89a885fabe19baf004869cdc9f155cc77593642.
This commit is contained in:
parent
e89a885fab
commit
dc7fea8d19
@ -17,7 +17,6 @@ Future<dds.DartDevelopmentService> Function(
|
|||||||
bool enableAuthCodes,
|
bool enableAuthCodes,
|
||||||
bool ipv6,
|
bool ipv6,
|
||||||
Uri? serviceUri,
|
Uri? serviceUri,
|
||||||
List<String> cachedUserTags,
|
|
||||||
}) ddsLauncherCallback = dds.DartDevelopmentService.startDartDevelopmentService;
|
}) ddsLauncherCallback = dds.DartDevelopmentService.startDartDevelopmentService;
|
||||||
|
|
||||||
/// Helper class to launch a [dds.DartDevelopmentService]. Allows for us to
|
/// Helper class to launch a [dds.DartDevelopmentService]. Allows for us to
|
||||||
@ -53,8 +52,6 @@ class DartDevelopmentService {
|
|||||||
serviceUri: ddsUri,
|
serviceUri: ddsUri,
|
||||||
enableAuthCodes: disableServiceAuthCodes != true,
|
enableAuthCodes: disableServiceAuthCodes != true,
|
||||||
ipv6: ipv6 == true,
|
ipv6: ipv6 == true,
|
||||||
// Enables caching of CPU samples collected during application startup.
|
|
||||||
cachedUserTags: const <String>['AppStartUp'],
|
|
||||||
);
|
);
|
||||||
unawaited(_ddsInstance?.done.whenComplete(() {
|
unawaited(_ddsInstance?.done.whenComplete(() {
|
||||||
if (!_completer.isCompleted) {
|
if (!_completer.isCompleted) {
|
||||||
|
@ -1809,12 +1809,11 @@ void main() {
|
|||||||
fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[]);
|
fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[]);
|
||||||
final FakeDevice device = FakeDevice()
|
final FakeDevice device = FakeDevice()
|
||||||
..dds = DartDevelopmentService();
|
..dds = DartDevelopmentService();
|
||||||
ddsLauncherCallback = (Uri uri, {bool enableAuthCodes, bool ipv6, Uri serviceUri, List<String> cachedUserTags}) {
|
ddsLauncherCallback = (Uri uri, {bool enableAuthCodes, bool ipv6, Uri serviceUri}) {
|
||||||
expect(uri, Uri(scheme: 'foo', host: 'bar'));
|
expect(uri, Uri(scheme: 'foo', host: 'bar'));
|
||||||
expect(enableAuthCodes, isTrue);
|
expect(enableAuthCodes, isTrue);
|
||||||
expect(ipv6, isFalse);
|
expect(ipv6, isFalse);
|
||||||
expect(serviceUri, Uri(scheme: 'http', host: '127.0.0.1', port: 0));
|
expect(serviceUri, Uri(scheme: 'http', host: '127.0.0.1', port: 0));
|
||||||
expect(cachedUserTags, <String>['AppStartUp']);
|
|
||||||
throw FakeDartDevelopmentServiceException(message:
|
throw FakeDartDevelopmentServiceException(message:
|
||||||
'Existing VM service clients prevent DDS from taking control.',
|
'Existing VM service clients prevent DDS from taking control.',
|
||||||
);
|
);
|
||||||
@ -1857,12 +1856,11 @@ void main() {
|
|||||||
final FakeDevice device = FakeDevice()
|
final FakeDevice device = FakeDevice()
|
||||||
..dds = DartDevelopmentService();
|
..dds = DartDevelopmentService();
|
||||||
final Completer<void>done = Completer<void>();
|
final Completer<void>done = Completer<void>();
|
||||||
ddsLauncherCallback = (Uri uri, {bool enableAuthCodes, bool ipv6, Uri serviceUri, List<String> cachedUserTags}) async {
|
ddsLauncherCallback = (Uri uri, {bool enableAuthCodes, bool ipv6, Uri serviceUri}) async {
|
||||||
expect(uri, Uri(scheme: 'foo', host: 'bar'));
|
expect(uri, Uri(scheme: 'foo', host: 'bar'));
|
||||||
expect(enableAuthCodes, isFalse);
|
expect(enableAuthCodes, isFalse);
|
||||||
expect(ipv6, isTrue);
|
expect(ipv6, isTrue);
|
||||||
expect(serviceUri, Uri(scheme: 'http', host: '::1', port: 0));
|
expect(serviceUri, Uri(scheme: 'http', host: '::1', port: 0));
|
||||||
expect(cachedUserTags, <String>['AppStartUp']);
|
|
||||||
done.complete();
|
done.complete();
|
||||||
return null;
|
return null;
|
||||||
};
|
};
|
||||||
@ -1889,12 +1887,11 @@ void main() {
|
|||||||
// See https://github.com/flutter/flutter/issues/72385 for context.
|
// See https://github.com/flutter/flutter/issues/72385 for context.
|
||||||
final FakeDevice device = FakeDevice()
|
final FakeDevice device = FakeDevice()
|
||||||
..dds = DartDevelopmentService();
|
..dds = DartDevelopmentService();
|
||||||
ddsLauncherCallback = (Uri uri, {bool enableAuthCodes, bool ipv6, Uri serviceUri, List<String> cachedUserTags}) {
|
ddsLauncherCallback = (Uri uri, {bool enableAuthCodes, bool ipv6, Uri serviceUri}) {
|
||||||
expect(uri, Uri(scheme: 'foo', host: 'bar'));
|
expect(uri, Uri(scheme: 'foo', host: 'bar'));
|
||||||
expect(enableAuthCodes, isTrue);
|
expect(enableAuthCodes, isTrue);
|
||||||
expect(ipv6, isFalse);
|
expect(ipv6, isFalse);
|
||||||
expect(serviceUri, Uri(scheme: 'http', host: '127.0.0.1', port: 0));
|
expect(serviceUri, Uri(scheme: 'http', host: '127.0.0.1', port: 0));
|
||||||
expect(cachedUserTags, <String>['AppStartUp']);
|
|
||||||
throw FakeDartDevelopmentServiceException(message: 'No URI');
|
throw FakeDartDevelopmentServiceException(message: 'No URI');
|
||||||
};
|
};
|
||||||
final TestFlutterDevice flutterDevice = TestFlutterDevice(
|
final TestFlutterDevice flutterDevice = TestFlutterDevice(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user