Skip to content

Commit 58944e6

Browse files
authored
Revert "Enable caching of CPU samples collected at application startup (flutter#89600)" (flutter#89704)
This reverts commit 619121b.
1 parent 619121b commit 58944e6

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

packages/flutter_tools/lib/src/base/dds.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ Future<dds.DartDevelopmentService> Function(
1717
bool enableAuthCodes,
1818
bool ipv6,
1919
Uri? serviceUri,
20-
List<String> cachedUserTags,
2120
}) ddsLauncherCallback = dds.DartDevelopmentService.startDartDevelopmentService;
2221

2322
/// Helper class to launch a [dds.DartDevelopmentService]. Allows for us to
@@ -53,8 +52,6 @@ class DartDevelopmentService {
5352
serviceUri: ddsUri,
5453
enableAuthCodes: disableServiceAuthCodes != true,
5554
ipv6: ipv6 == true,
56-
// Enables caching of CPU samples collected during application startup.
57-
cachedUserTags: const <String>['AppStartUp'],
5855
);
5956
unawaited(_ddsInstance?.done.whenComplete(() {
6057
if (!_completer.isCompleted) {

packages/flutter_tools/test/general.shard/resident_runner_test.dart

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1806,12 +1806,11 @@ void main() {
18061806
fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[]);
18071807
final FakeDevice device = FakeDevice()
18081808
..dds = DartDevelopmentService();
1809-
ddsLauncherCallback = (Uri uri, {bool enableAuthCodes, bool ipv6, Uri serviceUri, List<String> cachedUserTags}) {
1809+
ddsLauncherCallback = (Uri uri, {bool enableAuthCodes, bool ipv6, Uri serviceUri}) {
18101810
expect(uri, Uri(scheme: 'foo', host: 'bar'));
18111811
expect(enableAuthCodes, isTrue);
18121812
expect(ipv6, isFalse);
18131813
expect(serviceUri, Uri(scheme: 'http', host: '127.0.0.1', port: 0));
1814-
expect(cachedUserTags, <String>['AppStartUp']);
18151814
throw FakeDartDevelopmentServiceException(message:
18161815
'Existing VM service clients prevent DDS from taking control.',
18171816
);
@@ -1854,12 +1853,11 @@ void main() {
18541853
final FakeDevice device = FakeDevice()
18551854
..dds = DartDevelopmentService();
18561855
final Completer<void>done = Completer<void>();
1857-
ddsLauncherCallback = (Uri uri, {bool enableAuthCodes, bool ipv6, Uri serviceUri, List<String> cachedUserTags}) async {
1856+
ddsLauncherCallback = (Uri uri, {bool enableAuthCodes, bool ipv6, Uri serviceUri}) async {
18581857
expect(uri, Uri(scheme: 'foo', host: 'bar'));
18591858
expect(enableAuthCodes, isFalse);
18601859
expect(ipv6, isTrue);
18611860
expect(serviceUri, Uri(scheme: 'http', host: '::1', port: 0));
1862-
expect(cachedUserTags, <String>['AppStartUp']);
18631861
done.complete();
18641862
return null;
18651863
};
@@ -1886,12 +1884,11 @@ void main() {
18861884
// See https://github.com/flutter/flutter/issues/72385 for context.
18871885
final FakeDevice device = FakeDevice()
18881886
..dds = DartDevelopmentService();
1889-
ddsLauncherCallback = (Uri uri, {bool enableAuthCodes, bool ipv6, Uri serviceUri, List<String> cachedUserTags}) {
1887+
ddsLauncherCallback = (Uri uri, {bool enableAuthCodes, bool ipv6, Uri serviceUri}) {
18901888
expect(uri, Uri(scheme: 'foo', host: 'bar'));
18911889
expect(enableAuthCodes, isTrue);
18921890
expect(ipv6, isFalse);
18931891
expect(serviceUri, Uri(scheme: 'http', host: '127.0.0.1', port: 0));
1894-
expect(cachedUserTags, <String>['AppStartUp']);
18951892
throw FakeDartDevelopmentServiceException(message: 'No URI');
18961893
};
18971894
final TestFlutterDevice flutterDevice = TestFlutterDevice(

0 commit comments

Comments
 (0)