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

Side by Side Diff: pkg/analysis_server/test/performance/instrumentation_input_converter.dart

Issue 1202843010: performance measurement: generate report (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: merge Created 5 years, 6 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
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 input.transformer.instrumentation; 5 library input.transformer.instrumentation;
6 6
7 import 'dart:convert'; 7 import 'dart:convert';
8 8
9 import 'package:analyzer/src/generated/java_engine.dart'; 9 import 'package:analyzer/src/generated/java_engine.dart';
10 import 'package:analyzer/instrumentation/instrumentation.dart'; 10 import 'package:analyzer/instrumentation/instrumentation.dart';
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 return convertNotification(decodeJson(line, fields[2])); 58 return convertNotification(decodeJson(line, fields[2]));
59 } else if (opCode == 'Read') { 59 } else if (opCode == 'Read') {
60 // 1434096943209:Read:/some/file/path:1434095535000:<file content> 60 // 1434096943209:Read:/some/file/path:1434095535000:<file content>
61 //String filePath = fields[2]; 61 //String filePath = fields[2];
62 readBuffer = new StringBuffer(fields.length > 4 ? fields[4] : ''); 62 readBuffer = new StringBuffer(fields.length > 4 ? fields[4] : '');
63 return null; 63 return null;
64 } else if (opCode == InstrumentationService.TAG_REQUEST) { 64 } else if (opCode == InstrumentationService.TAG_REQUEST) {
65 return convertRequest(decodeJson(line, fields[2])); 65 return convertRequest(decodeJson(line, fields[2]));
66 } else if (opCode == InstrumentationService.TAG_RESPONSE) { 66 } else if (opCode == InstrumentationService.TAG_RESPONSE) {
67 // 1434096937454:Res:{"id"::"0","result"::{"version"::"1.7.0"}} 67 // 1434096937454:Res:{"id"::"0","result"::{"version"::"1.7.0"}}
68 recordResponse(decodeJson(line, fields[2])); 68 return convertResponse(decodeJson(line, fields[2]));
69 return null;
70 } else if (opCode == InstrumentationService.TAG_ANALYSIS_TASK) { 69 } else if (opCode == InstrumentationService.TAG_ANALYSIS_TASK) {
71 // 1434096943208:Task:/Users/ 70 // 1434096943208:Task:/Users/
72 return null; 71 return null;
73 } else if (opCode == InstrumentationService.TAG_LOG_ENTRY) { 72 } else if (opCode == InstrumentationService.TAG_LOG_ENTRY) {
74 // 1434096937454:Res:{"id"::"0","result"::{"version"::"1.7.0"}} 73 // 1434096937454:Res:{"id"::"0","result"::{"version"::"1.7.0"}}
75 return null; 74 return null;
76 } else if (opCode == InstrumentationService.TAG_PERFORMANCE) { 75 } else if (opCode == InstrumentationService.TAG_PERFORMANCE) {
77 //1434096960092:Perf:analysis_full:16884:context_id=0 76 //1434096960092:Perf:analysis_full:16884:context_id=0
78 return null; 77 return null;
79 } else if (opCode == InstrumentationService.TAG_SUBPROCESS_START) { 78 } else if (opCode == InstrumentationService.TAG_SUBPROCESS_START) {
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 sb.writeCharCode(code); 140 sb.writeCharCode(code);
142 } 141 }
143 ++index; 142 ++index;
144 } 143 }
145 if (sb.isNotEmpty) { 144 if (sb.isNotEmpty) {
146 fields.add(sb.toString()); 145 fields.add(sb.toString());
147 } 146 }
148 return fields; 147 return fields;
149 } 148 }
150 } 149 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698