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

Side by Side Diff: runtime/observatory/lib/service_common.dart

Issue 2170723002: Converted Observatory vm-nav-menu element (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Added missing space Created 4 years, 5 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 library service_common; 5 library service_common;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:convert'; 8 import 'dart:convert';
9 import 'dart:typed_data'; 9 import 'dart:typed_data';
10 10
11 import 'package:logging/logging.dart'; 11 import 'package:logging/logging.dart';
12 import 'package:observatory/models.dart' as M;
12 import 'package:observatory/service.dart'; 13 import 'package:observatory/service.dart';
13 14
14 // Export the service library. 15 // Export the service library.
15 export 'package:observatory/service.dart'; 16 export 'package:observatory/service.dart';
16 17
17 /// Description of a VM target. 18 /// Description of a VM target.
18 class WebSocketVMTarget { 19 class WebSocketVMTarget implements M.Target {
19 // Last time this VM has been connected to. 20 // Last time this VM has been connected to.
20 int lastConnectionTime = 0; 21 int lastConnectionTime = 0;
21 bool get hasEverConnected => lastConnectionTime > 0; 22 bool get hasEverConnected => lastConnectionTime > 0;
22 23
23 // Chrome VM or standalone; 24 // Chrome VM or standalone;
24 bool chrome = false; 25 bool chrome = false;
25 bool get standalone => !chrome; 26 bool get standalone => !chrome;
26 27
27 // User defined name. 28 // User defined name.
28 String name; 29 String name;
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 if (request.method != 'getTagProfile' && 321 if (request.method != 'getTagProfile' &&
321 request.method != 'getIsolateMetric' && 322 request.method != 'getIsolateMetric' &&
322 request.method != 'getVMMetric') { 323 request.method != 'getVMMetric') {
323 Logger.root.info( 324 Logger.root.info(
324 'GET [${serial}] ${request.method}(${request.params}) from ${target.ne tworkAddress}'); 325 'GET [${serial}] ${request.method}(${request.params}) from ${target.ne tworkAddress}');
325 } 326 }
326 // Send message. 327 // Send message.
327 _webSocket.send(message); 328 _webSocket.send(message);
328 } 329 }
329 } 330 }
OLDNEW
« no previous file with comments | « runtime/observatory/lib/models.dart ('k') | runtime/observatory/lib/src/elements/nav/vm_menu.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698