Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(532)

Side by Side Diff: pkg/analyzer/lib/src/task/driver.dart

Issue 2917183003: update the analyzer and analysis server perf tags (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library analyzer.src.task.driver; 5 library analyzer.src.task.driver;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection'; 8 import 'dart:collection';
9 9
10 import 'package:analyzer/exception/exception.dart'; 10 import 'package:analyzer/exception/exception.dart';
11 import 'package:analyzer/src/context/cache.dart'; 11 import 'package:analyzer/src/context/cache.dart';
12 import 'package:analyzer/src/generated/engine.dart'; 12 import 'package:analyzer/src/generated/engine.dart';
13 import 'package:analyzer/src/generated/resolver.dart'; 13 import 'package:analyzer/src/generated/resolver.dart';
14 import 'package:analyzer/src/generated/utilities_general.dart'; 14 import 'package:analyzer/src/generated/utilities_general.dart';
15 import 'package:analyzer/src/task/inputs.dart'; 15 import 'package:analyzer/src/task/inputs.dart';
16 import 'package:analyzer/src/task/manager.dart'; 16 import 'package:analyzer/src/task/manager.dart';
17 import 'package:analyzer/task/model.dart'; 17 import 'package:analyzer/task/model.dart';
18 18
19 final PerformanceTag driverTag =
20 PerformanceStatistics.analyzer.createChild('driver');
scheglov 2017/06/04 00:30:44 Hm... We use this tag for different "drivers".
devoncarew 2017/06/04 01:45:53 Updated this one to be 'taskDriver'.
21
22 final PerformanceTag driverCacheTag = driverTag.createChild('cache');
scheglov 2017/06/04 00:30:44 Unless I miss something, we use this for the diffe
devoncarew 2017/06/04 01:45:53 Moved these to 'analysis/driver.dart'. There are
23
19 final PerformanceTag analysisDriverProcessOutputs = 24 final PerformanceTag analysisDriverProcessOutputs =
20 new PerformanceTag('AnalysisDriver.processOutputs'); 25 driverTag.createChild('processOutputs');
21 26
22 final PerformanceTag workOrderMoveNextPerformanceTag = 27 final PerformanceTag workOrderMoveNextPerformanceTag =
23 new PerformanceTag('WorkOrder.moveNext'); 28 driverTag.createChild('workOrderMoveNext');
24 29
25 /** 30 /**
26 * An object that is used to cause analysis to be performed until all of the 31 * An object that is used to cause analysis to be performed until all of the
27 * required analysis information has been computed. 32 * required analysis information has been computed.
28 */ 33 */
29 class AnalysisDriver { 34 class AnalysisDriver {
30 /** 35 /**
31 * The task manager used to figure out how to compute analysis results. 36 * The task manager used to figure out how to compute analysis results.
32 */ 37 */
33 final TaskManager taskManager; 38 final TaskManager taskManager;
(...skipping 838 matching lines...) Expand 10 before | Expand all | Expand 10 after
872 final TaskManager taskManager; 877 final TaskManager taskManager;
873 878
874 _WorkOrderDependencyWalker(this.taskManager, WorkItem startingNode) 879 _WorkOrderDependencyWalker(this.taskManager, WorkItem startingNode)
875 : super(startingNode); 880 : super(startingNode);
876 881
877 @override 882 @override
878 WorkItem getNextInput(WorkItem node, List<WorkItem> skipInputs) { 883 WorkItem getNextInput(WorkItem node, List<WorkItem> skipInputs) {
879 return node.gatherInputs(taskManager, skipInputs); 884 return node.gatherInputs(taskManager, skipInputs);
880 } 885 }
881 } 886 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698