OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 'package:observatory/models.dart' as M; | 5 import 'package:observatory/models.dart' as M; |
6 | 6 |
7 /// Utility class for URIs generation. | 7 /// Utility class for URIs generation. |
8 abstract class Uris { | 8 abstract class Uris { |
9 static String _isolatePage(String path, M.IsolateRef isolate, | 9 static String _isolatePage(String path, M.IsolateRef isolate, |
10 {M.ObjectRef object}) { | 10 {M.ObjectRef object}) { |
(...skipping 25 matching lines...) Expand all Loading... |
36 static String heapSnapshot(M.IsolateRef isolate) | 36 static String heapSnapshot(M.IsolateRef isolate) |
37 => _isolatePage('/heap-snapshot', isolate); | 37 => _isolatePage('/heap-snapshot', isolate); |
38 static String persistentHandles(M.IsolateRef isolate) | 38 static String persistentHandles(M.IsolateRef isolate) |
39 => _isolatePage('/persistent-handles', isolate); | 39 => _isolatePage('/persistent-handles', isolate); |
40 static String ports(M.IsolateRef isolate) | 40 static String ports(M.IsolateRef isolate) |
41 => _isolatePage('/ports', isolate); | 41 => _isolatePage('/ports', isolate); |
42 static String logging(M.IsolateRef isolate) | 42 static String logging(M.IsolateRef isolate) |
43 => _isolatePage('/logging', isolate); | 43 => _isolatePage('/logging', isolate); |
44 static String vm() => '#/vm'; | 44 static String vm() => '#/vm'; |
45 static String vmConnect() => '#/vm-connect'; | 45 static String vmConnect() => '#/vm-connect'; |
| 46 static String flags() => '#/flags'; |
46 } | 47 } |
OLD | NEW |