| Index: pkg/analysis_server/lib/src/services/completion/completion_performance.dart
|
| diff --git a/pkg/analysis_server/lib/src/services/completion/completion_performance.dart b/pkg/analysis_server/lib/src/services/completion/completion_performance.dart
|
| index 614d20545c79caa457862faee616f842ff09fb85..0272fb889a949c645ddb5a1ec5eea5b1f43de16a 100644
|
| --- a/pkg/analysis_server/lib/src/services/completion/completion_performance.dart
|
| +++ b/pkg/analysis_server/lib/src/services/completion/completion_performance.dart
|
| @@ -45,23 +45,14 @@ class CompletionPerformance {
|
| _logDuration(tag != null ? tag : 'total time', _stopwatch.elapsed);
|
| }
|
|
|
| - logElapseTime(String tag, [f() = null]) {
|
| - Duration start;
|
| + void logElapseTime(String tag) {
|
| Duration end = _stopwatch.elapsed;
|
| - var result;
|
| - if (f == null) {
|
| - start = _startTimes[tag];
|
| - if (start == null) {
|
| - _logDuration(tag, null);
|
| - return null;
|
| - }
|
| - } else {
|
| - result = f();
|
| - start = end;
|
| - end = _stopwatch.elapsed;
|
| + Duration start = _startTimes[tag];
|
| + if (start == null) {
|
| + _logDuration(tag, null);
|
| + return null;
|
| }
|
| _logDuration(tag, end - start);
|
| - return result;
|
| }
|
|
|
| void logFirstNotificationComplete(String tag) {
|
|
|