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

Side by Side Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/context/AnalysisContextImpl.java

Issue 614403002: turn off instrumentated task cycle detection (Closed) Base URL: https://dart.googlecode.com/svn/trunk/dart
Patch Set: increment VERSION Created 6 years, 2 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 | « no previous file | tools/VERSION » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012, the Dart project authors. 2 * Copyright (c) 2012, the Dart project authors.
3 * 3 *
4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u se this file except 4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u se this file except
5 * in compliance with the License. You may obtain a copy of the License at 5 * in compliance with the License. You may obtain a copy of the License at
6 * 6 *
7 * http://www.eclipse.org/legal/epl-v10.html 7 * http://www.eclipse.org/legal/epl-v10.html
8 * 8 *
9 * Unless required by applicable law or agreed to in writing, software distribut ed under the License 9 * Unless required by applicable law or agreed to in writing, software distribut ed under the License
10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K IND, either express 10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K IND, either express
(...skipping 1905 matching lines...) Expand 10 before | Expand all | Expand 10 after
1916 long getStart = System.currentTimeMillis(); 1916 long getStart = System.currentTimeMillis();
1917 AnalysisTask task = getNextAnalysisTask(); 1917 AnalysisTask task = getNextAnalysisTask();
1918 long getEnd = System.currentTimeMillis(); 1918 long getEnd = System.currentTimeMillis();
1919 if (task == null && validateCacheConsistency()) { 1919 if (task == null && validateCacheConsistency()) {
1920 task = getNextAnalysisTask(); 1920 task = getNextAnalysisTask();
1921 } 1921 }
1922 if (task == null) { 1922 if (task == null) {
1923 return new AnalysisResult(getChangeNotices(true), getEnd - getStart, null, -1L); 1923 return new AnalysisResult(getChangeNotices(true), getEnd - getStart, null, -1L);
1924 } 1924 }
1925 String taskDescription = task.toString(); 1925 String taskDescription = task.toString();
1926 if (!reportedLoop && !recentTasks.add(taskDescription)) { 1926 // if (!reportedLoop && !recentTasks.add(taskDescription)) {
1927 @SuppressWarnings("resource") 1927 // @SuppressWarnings("resource")
1928 PrintStringWriter writer = new PrintStringWriter(); 1928 // PrintStringWriter writer = new PrintStringWriter();
1929 writer.print("Performing repeated task: "); 1929 // writer.print("Performing repeated task: ");
1930 writer.println(taskDescription); 1930 // writer.println(taskDescription);
1931 for (String description : recentTasks) { 1931 // for (String description : recentTasks) {
1932 writer.print(" "); 1932 // writer.print(" ");
1933 writer.println(description); 1933 // writer.println(description);
1934 } 1934 // }
1935 logInformation(writer.toString()); 1935 // logInformation(writer.toString());
1936 } 1936 // }
1937 notifyAboutToPerformTask(taskDescription); 1937 notifyAboutToPerformTask(taskDescription);
1938 if (TRACE_PERFORM_TASK) { 1938 if (TRACE_PERFORM_TASK) {
1939 System.out.println(taskDescription); 1939 System.out.println(taskDescription);
1940 } 1940 }
1941 long performStart = System.currentTimeMillis(); 1941 long performStart = System.currentTimeMillis();
1942 try { 1942 try {
1943 task.perform(resultRecorder); 1943 task.perform(resultRecorder);
1944 } catch (ObsoleteSourceAnalysisException exception) { 1944 } catch (ObsoleteSourceAnalysisException exception) {
1945 AnalysisEngine.getInstance().getLogger().logInformation( 1945 AnalysisEngine.getInstance().getLogger().logInformation(
1946 "Could not perform analysis task: " + taskDescription, 1946 "Could not perform analysis task: " + taskDescription,
(...skipping 3916 matching lines...) Expand 10 before | Expand all | Expand 10 after
5863 writer.println(" missing sources"); 5863 writer.println(" missing sources");
5864 for (Source source : missingSources) { 5864 for (Source source : missingSources) {
5865 writer.print(" "); 5865 writer.print(" ");
5866 writer.println(source.getFullName()); 5866 writer.println(source.getFullName());
5867 } 5867 }
5868 logInformation(writer.toString()); 5868 logInformation(writer.toString());
5869 } 5869 }
5870 return changedSources.size() > 0; 5870 return changedSources.size() > 0;
5871 } 5871 }
5872 } 5872 }
OLDNEW
« no previous file with comments | « no previous file | tools/VERSION » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698