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

Side by Side Diff: pkg/analyzer/lib/src/generated/engine.dart

Issue 825683005: Instrument file reads (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 // This code was auto-generated, is not intended to be edited, and is subject to 5 // This code was auto-generated, is not intended to be edited, and is subject to
6 // significant change. Please see the README file for more information. 6 // significant change. Please see the README file for more information.
7 7
8 library engine; 8 library engine;
9 9
10 import "dart:math" as math; 10 import "dart:math" as math;
(...skipping 8912 matching lines...) Expand 10 before | Expand all | Expand 10 after
8923 @override 8923 @override
8924 accept(AnalysisTaskVisitor visitor) => visitor.visitGetContentTask(this); 8924 accept(AnalysisTaskVisitor visitor) => visitor.visitGetContentTask(this);
8925 8925
8926 @override 8926 @override
8927 void internalPerform() { 8927 void internalPerform() {
8928 _complete = true; 8928 _complete = true;
8929 try { 8929 try {
8930 TimestampedData<String> data = context.getContents(source); 8930 TimestampedData<String> data = context.getContents(source);
8931 _content = data.data; 8931 _content = data.data;
8932 _modificationTime = data.modificationTime; 8932 _modificationTime = data.modificationTime;
8933 AnalysisEngine.instance.instrumentationService.logFileRead(source.fullName , _modificationTime, _content);
8933 } catch (exception, stackTrace) { 8934 } catch (exception, stackTrace) {
8934 throw new AnalysisException( 8935 throw new AnalysisException(
8935 "Could not get contents of $source", 8936 "Could not get contents of $source",
8936 new CaughtException(exception, stackTrace)); 8937 new CaughtException(exception, stackTrace));
8937 } 8938 }
8938 } 8939 }
8939 } 8940 }
8940 8941
8941 /** 8942 /**
8942 * An `HtmlEntry` maintains the information cached by an analysis context about 8943 * An `HtmlEntry` maintains the information cached by an analysis context about
(...skipping 3218 matching lines...) Expand 10 before | Expand all | Expand 10 after
12161 if (element.id == _id) { 12162 if (element.id == _id) {
12162 result = element; 12163 result = element;
12163 throw new _ElementByIdFinderException(); 12164 throw new _ElementByIdFinderException();
12164 } 12165 }
12165 super.visitElement(element); 12166 super.visitElement(element);
12166 } 12167 }
12167 } 12168 }
12168 12169
12169 class _ElementByIdFinderException { 12170 class _ElementByIdFinderException {
12170 } 12171 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/instrumentation/instrumentation.dart ('k') | pkg/analyzer/test/instrumentation/instrumentation_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698