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

Unified Diff: pkg/analysis_server/lib/src/status/get_handler.dart

Issue 1432293002: Remove task inputs performance statistics. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month 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 | « no previous file | pkg/analyzer/lib/src/task/driver.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/src/status/get_handler.dart
diff --git a/pkg/analysis_server/lib/src/status/get_handler.dart b/pkg/analysis_server/lib/src/status/get_handler.dart
index 94dd6f995164ed51df9fd61244635b876fc0df81..8d619370c6846a148589094744c5b9ca89967711 100644
--- a/pkg/analysis_server/lib/src/status/get_handler.dart
+++ b/pkg/analysis_server/lib/src/status/get_handler.dart
@@ -514,7 +514,7 @@ class GetHandler {
//
// Write task model timing information.
//
- buffer.write('<p><b>Task performace data</b></p>');
+ buffer.write('<p><b>Task performance data</b></p>');
buffer.write(
'<table style="border-collapse: separate; border-spacing: 10px 5px;">');
_writeRow(
@@ -556,51 +556,6 @@ class GetHandler {
classes: [null, "right", "right", "right"]);
buffer.write('</table>');
});
- //
- // Write task model inputs timing information.
- //
- {
- buffer.write('<p><b>Task inputs performace data</b></p>');
- buffer.write(
- '<table style="border-collapse: separate; border-spacing: 10px 5px;">');
- _writeRow(
- buffer,
- [
- 'Task Name',
- 'Count',
- 'Total Time (in ms)',
- 'Average Time (in ms)'
- ],
- header: true);
-
- Map<TaskDescriptor, int> countMap = WorkItem.countMap;
- Map<TaskDescriptor, Stopwatch> stopwatchMap = WorkItem.stopwatchMap;
- List<TaskDescriptor> taskClasses = stopwatchMap.keys.toList();
- taskClasses.sort((TaskDescriptor first, TaskDescriptor second) {
- String firstName = first.name;
- String secondName = second.name;
- return firstName.compareTo(secondName);
- });
- taskClasses.forEach((TaskDescriptor descriptor) {
- int count = countMap[descriptor];
- if (count == null) {
- count = 0;
- }
- int taskTime = stopwatchMap[descriptor].elapsedMilliseconds;
- _writeRow(buffer, [
- descriptor.name,
- count,
- taskTime,
- count <= 0 ? '-' : (taskTime / count).toStringAsFixed(3)
- ], classes: [
- null,
- "right",
- "right",
- "right"
- ]);
- });
- buffer.write('</table>');
- }
});
});
}
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/task/driver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698