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

Side by Side Diff: pkg/analysis_server/lib/src/status/get_handler.dart

Issue 2209493003: Don't report removed sources as changed in CacheConsistencyValidatorImpl. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/context/cache.dart » ('j') | 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 library analysis_server.src.status.get_handler; 5 library analysis_server.src.status.get_handler;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 import 'dart:convert'; 8 import 'dart:convert';
9 import 'dart:io'; 9 import 'dart:io';
10 import 'dart:math'; 10 import 'dart:math';
(...skipping 809 matching lines...) Expand 10 before | Expand all | Expand 10 after
820 classes: [null, "right"]); 820 classes: [null, "right"]);
821 } 821 }
822 buffer.write('</table>'); 822 buffer.write('</table>');
823 823
824 { 824 {
825 buffer.write('<p><b>Cache consistency statistics</b></p>'); 825 buffer.write('<p><b>Cache consistency statistics</b></p>');
826 buffer.write( 826 buffer.write(
827 '<table style="border-collapse: separate; border-spacing: 10px 5 px;">'); 827 '<table style="border-collapse: separate; border-spacing: 10px 5 px;">');
828 _writeRow(buffer, ['Name', 'Count'], header: true); 828 _writeRow(buffer, ['Name', 'Count'], header: true);
829 _writeRow(buffer, [ 829 _writeRow(buffer, [
830 'Modified', 830 'Changed',
831 PerformanceStatistics 831 PerformanceStatistics
832 .cacheConsistencyValidationStatistics.numOfModified 832 .cacheConsistencyValidationStatistics.numOfChanged
833 ], classes: [ 833 ], classes: [
834 null, 834 null,
835 "right" 835 "right"
836 ]); 836 ]);
837 _writeRow(buffer, [ 837 _writeRow(buffer, [
838 'Deleted', 838 'Removed',
839 PerformanceStatistics 839 PerformanceStatistics
840 .cacheConsistencyValidationStatistics.numOfDeleted 840 .cacheConsistencyValidationStatistics.numOfRemoved
841 ], classes: [ 841 ], classes: [
842 null, 842 null,
843 "right" 843 "right"
844 ]); 844 ]);
845 buffer.write('</table>'); 845 buffer.write('</table>');
846 } 846 }
847 }, (StringBuffer buffer) { 847 }, (StringBuffer buffer) {
848 // 848 //
849 // Write task model timing information. 849 // Write task model timing information.
850 // 850 //
(...skipping 1886 matching lines...) Expand 10 before | Expand all | Expand 10 after
2737 */ 2737 */
2738 static String makeLink( 2738 static String makeLink(
2739 String path, Map<String, String> params, String innerHtml, 2739 String path, Map<String, String> params, String innerHtml,
2740 [bool hasError = false]) { 2740 [bool hasError = false]) {
2741 Uri uri = new Uri(path: path, queryParameters: params); 2741 Uri uri = new Uri(path: path, queryParameters: params);
2742 String href = HTML_ESCAPE.convert(uri.toString()); 2742 String href = HTML_ESCAPE.convert(uri.toString());
2743 String classAttribute = hasError ? ' class="error"' : ''; 2743 String classAttribute = hasError ? ' class="error"' : '';
2744 return '<a href="$href"$classAttribute>$innerHtml</a>'; 2744 return '<a href="$href"$classAttribute>$innerHtml</a>';
2745 } 2745 }
2746 } 2746 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/context/cache.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698