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

Unified Diff: pkg/analyzer/lib/src/generated/engine.dart

Issue 798123002: Make instrumentation available in engine (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analysis_server/lib/driver.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/engine.dart
diff --git a/pkg/analyzer/lib/src/generated/engine.dart b/pkg/analyzer/lib/src/generated/engine.dart
index 552e183a7df2b789b724a12fea80978813492bb9..a51ae9a23a3711f7327234a354052c59b19a0f9e 100644
--- a/pkg/analyzer/lib/src/generated/engine.dart
+++ b/pkg/analyzer/lib/src/generated/engine.dart
@@ -13,6 +13,7 @@ import 'dart:collection';
import 'package:analyzer/src/task/task_dart.dart';
+import '../../instrumentation/instrumentation.dart';
import 'ast.dart';
import 'constant.dart';
import 'element.dart';
@@ -6141,8 +6142,8 @@ class AnalysisDelta {
}
/**
- * The unique instance of the class `AnalysisEngine` serves as the entry point for the
- * functionality provided by the analysis engine.
+ * The unique instance of the class `AnalysisEngine` serves as the entry point
+ * for the functionality provided by the analysis engine.
*/
class AnalysisEngine {
/**
@@ -6178,6 +6179,12 @@ class AnalysisEngine {
Logger _logger = Logger.NULL;
/**
+ * The instrumentation service that is to be used by this analysis engine.
+ */
+ InstrumentationService _instrumentationService =
+ InstrumentationService.NULL_SERVICE;
+
+ /**
* The partition manager being used to manage the shared partitions.
*/
final PartitionManager partitionManager = new PartitionManager();
@@ -6194,6 +6201,24 @@ class AnalysisEngine {
bool strictUnionTypes = false;
/**
+ * Return the instrumentation service that is to be used by this analysis
+ * engine.
+ */
+ InstrumentationService get instrumentationService => _instrumentationService;
+
+ /**
+ * Set the instrumentation service that is to be used by this analysis engine
+ * to the given [service].
+ */
+ void set instrumentationService(InstrumentationService service) {
+ if (service == null) {
+ _instrumentationService = InstrumentationService.NULL_SERVICE;
+ } else {
+ _instrumentationService = service;
+ }
+ }
+
+ /**
* Return the logger that should receive information about errors within the analysis engine.
*
* @return the logger that should receive information about errors within the analysis engine
« no previous file with comments | « pkg/analysis_server/lib/driver.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698