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

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

Issue 928073003: Add more user tags to help trackdown analysis server perf bottlenecks. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Reformat Created 5 years, 10 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
« no previous file with comments | « pkg/analysis_server/lib/src/services/index/store/split_store.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2272 matching lines...) Expand 10 before | Expand all | Expand 10 after
2283 ht.HtmlUnit parseHtmlUnit(Source source) => 2283 ht.HtmlUnit parseHtmlUnit(Source source) =>
2284 _getHtmlParseData(source, HtmlEntry.PARSED_UNIT, null); 2284 _getHtmlParseData(source, HtmlEntry.PARSED_UNIT, null);
2285 2285
2286 @override 2286 @override
2287 AnalysisResult performAnalysisTask() { 2287 AnalysisResult performAnalysisTask() {
2288 if (_TRACE_PERFORM_TASK) { 2288 if (_TRACE_PERFORM_TASK) {
2289 print("----------------------------------------"); 2289 print("----------------------------------------");
2290 } 2290 }
2291 return PerformanceStatistics.performAnaysis.makeCurrentWhile(() { 2291 return PerformanceStatistics.performAnaysis.makeCurrentWhile(() {
2292 int getStart = JavaSystem.currentTimeMillis(); 2292 int getStart = JavaSystem.currentTimeMillis();
2293 AnalysisTask task = nextAnalysisTask; 2293 AnalysisTask task =
2294 PerformanceStatistics.nextTask.makeCurrentWhile(() => nextAnalysisTask );
2294 int getEnd = JavaSystem.currentTimeMillis(); 2295 int getEnd = JavaSystem.currentTimeMillis();
2295 if (task == null && _validateCacheConsistency()) { 2296 if (task == null && _validateCacheConsistency()) {
2296 task = nextAnalysisTask; 2297 task = nextAnalysisTask;
2297 } 2298 }
2298 if (task == null) { 2299 if (task == null) {
2299 _validateLastIncrementalResolutionResult(); 2300 _validateLastIncrementalResolutionResult();
2300 if (_performAnalysisTaskStopwatch != null) { 2301 if (_performAnalysisTaskStopwatch != null) {
2301 AnalysisEngine.instance.instrumentationService.logPerformance( 2302 AnalysisEngine.instance.instrumentationService.logPerformance(
2302 AnalysisPerformanceKind.FULL, 2303 AnalysisPerformanceKind.FULL,
2303 _performAnalysisTaskStopwatch, 2304 _performAnalysisTaskStopwatch,
(...skipping 4509 matching lines...) Expand 10 before | Expand all | Expand 10 after
6813 */ 6814 */
6814 Object perform(AnalysisTaskVisitor visitor) { 6815 Object perform(AnalysisTaskVisitor visitor) {
6815 try { 6816 try {
6816 _safelyPerform(); 6817 _safelyPerform();
6817 } on AnalysisException catch (exception, stackTrace) { 6818 } on AnalysisException catch (exception, stackTrace) {
6818 _thrownException = new CaughtException(exception, stackTrace); 6819 _thrownException = new CaughtException(exception, stackTrace);
6819 AnalysisEngine.instance.logger.logInformation( 6820 AnalysisEngine.instance.logger.logInformation(
6820 "Task failed: $taskDescription", 6821 "Task failed: $taskDescription",
6821 new CaughtException(exception, stackTrace)); 6822 new CaughtException(exception, stackTrace));
6822 } 6823 }
6823 return accept(visitor); 6824 return PerformanceStatistics.analysisTaskVisitor.makeCurrentWhile(
6825 () => accept(visitor));
6824 } 6826 }
6825 6827
6826 @override 6828 @override
6827 String toString() => taskDescription; 6829 String toString() => taskDescription;
6828 6830
6829 /** 6831 /**
6830 * Perform this analysis task, ensuring that all exceptions are wrapped in an 6832 * Perform this analysis task, ensuring that all exceptions are wrapped in an
6831 * [AnalysisException]. 6833 * [AnalysisException].
6832 * 6834 *
6833 * @throws AnalysisException if any exception occurs while performing the task 6835 * @throws AnalysisException if any exception occurs while performing the task
(...skipping 3678 matching lines...) Expand 10 before | Expand all | Expand 10 after
10512 10514
10513 /** 10515 /**
10514 * The [PerformanceTag] for time spent computing cycles. 10516 * The [PerformanceTag] for time spent computing cycles.
10515 */ 10517 */
10516 static PerformanceTag cycles = new PerformanceTag('cycles'); 10518 static PerformanceTag cycles = new PerformanceTag('cycles');
10517 10519
10518 /** 10520 /**
10519 * The [PerformanceTag] for time spent in other phases of analysis. 10521 * The [PerformanceTag] for time spent in other phases of analysis.
10520 */ 10522 */
10521 static PerformanceTag performAnaysis = new PerformanceTag('performAnaysis'); 10523 static PerformanceTag performAnaysis = new PerformanceTag('performAnaysis');
10524
10525 /**
10526 * The [PerformanceTag] for time spent in the analysis task visitor after
10527 * tasks are complete.
10528 */
10529 static PerformanceTag analysisTaskVisitor =
10530 new PerformanceTag('analysisTaskVisitor');
10531
10532 /**
10533 * The [PerformanceTag] for time spent in the getter
10534 * AnalysisContextImpl.nextAnalysisTask.
10535 */
10536 static var nextTask = new PerformanceTag('nextAnalysisTask');
10522 } 10537 }
10523 10538
10524 /** 10539 /**
10525 * Instances of the class `RecordingErrorListener` implement an error listener t hat will 10540 * Instances of the class `RecordingErrorListener` implement an error listener t hat will
10526 * record the errors that are reported to it in a way that is appropriate for ca ching those errors 10541 * record the errors that are reported to it in a way that is appropriate for ca ching those errors
10527 * within an analysis context. 10542 * within an analysis context.
10528 */ 10543 */
10529 class RecordingErrorListener implements AnalysisErrorListener { 10544 class RecordingErrorListener implements AnalysisErrorListener {
10530 /** 10545 /**
10531 * A HashMap of lists containing the errors that were collected, keyed by each [Source]. 10546 * A HashMap of lists containing the errors that were collected, keyed by each [Source].
(...skipping 1890 matching lines...) Expand 10 before | Expand all | Expand 10 after
12422 if (element.id == _id) { 12437 if (element.id == _id) {
12423 result = element; 12438 result = element;
12424 throw new _ElementByIdFinderException(); 12439 throw new _ElementByIdFinderException();
12425 } 12440 }
12426 super.visitElement(element); 12441 super.visitElement(element);
12427 } 12442 }
12428 } 12443 }
12429 12444
12430 class _ElementByIdFinderException { 12445 class _ElementByIdFinderException {
12431 } 12446 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/services/index/store/split_store.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698