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

Side by Side Diff: runtime/observatory/web/main.dart

Issue 2310003004: Removed polymer & mirror from Observatory (Closed)
Patch Set: Changed default sorting direction for Method in cpu-profile-table Created 4 years, 3 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) 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 import 'dart:html'; 5 import 'dart:html';
6 import 'package:logging/logging.dart'; 6 import 'package:logging/logging.dart';
7 import 'package:polymer/polymer.dart';
8 import 'package:observatory/elements.dart'; 7 import 'package:observatory/elements.dart';
9 8
10 main() async { 9 main() async {
11 Logger.root.level = Level.INFO; 10 Logger.root.level = Level.INFO;
12 Logger.root.onRecord.listen((LogRecord rec) { 11 Logger.root.onRecord.listen((LogRecord rec) {
13 if (rec.level == Level.WARNING && 12 if (rec.level == Level.WARNING &&
Cutch 2016/09/07 19:12:52 You can remove this suppression conditional now th
cbernaschina 2016/09/07 19:45:41 Done.
14 rec.message.startsWith('Error evaluating expression') && 13 rec.message.startsWith('Error evaluating expression') &&
15 (rec.message.contains("Can't assign to null: ") || 14 (rec.message.contains("Can't assign to null: ") ||
16 rec.message.contains('Expression is not assignable: '))) { 15 rec.message.contains('Expression is not assignable: '))) {
17 // Suppress flaky polymer errors. 16 // Suppress flaky polymer errors.
18 return; 17 return;
19 } 18 }
20 print('${rec.level.name}: ${rec.time}: ${rec.message}'); 19 print('${rec.level.name}: ${rec.time}: ${rec.message}');
21 }); 20 });
22 await initElements(); 21 await initElements();
23 Logger.root.info('Starting Observatory'); 22 Logger.root.info('Starting Observatory');
24 await initPolymer();
25 Logger.root.info('Polymer initialized');
26 await Polymer.onReady;
27 Logger.root.info('Polymer elements have been upgraded');
28 document.body.children 23 document.body.children
29 .insert(0, document.createElement('observatory-application')); 24 .insert(0, document.createElement('observatory-application'));
30 } 25 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698