Index: pkg/analyzer/lib/source/pub_package_map_provider.dart |
diff --git a/pkg/analyzer/lib/source/pub_package_map_provider.dart b/pkg/analyzer/lib/source/pub_package_map_provider.dart |
index 2196d1c8720b9a9e9129daee4558128abf569ae2..3b2d7311f5c4ac66bcf54d7391585b8c7cf95977 100644 |
--- a/pkg/analyzer/lib/source/pub_package_map_provider.dart |
+++ b/pkg/analyzer/lib/source/pub_package_map_provider.dart |
@@ -9,7 +9,6 @@ import 'dart:convert'; |
import 'dart:core'; |
import 'dart:io' as io; |
-import 'package:analysis_server/src/analysis_server.dart'; |
import 'package:analyzer/file_system/file_system.dart'; |
import 'package:analyzer/source/package_map_provider.dart'; |
import 'package:analyzer/src/dart/sdk/sdk.dart'; |
@@ -72,9 +71,7 @@ class PubPackageMapProvider implements PackageMapProvider { |
// to respond. |
io.ProcessResult result; |
try { |
- result = ServerPerformanceStatistics.pub.makeCurrentWhile(() { |
- return _runPubList(folder); |
- }); |
+ result = _runPubList(folder); |
} on io.ProcessException catch (exception, stackTrace) { |
AnalysisEngine.instance.logger.logInformation( |
"Error running pub $PUB_LIST_COMMAND\n$exception\n$stackTrace"); |