OLD | NEW |
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 part of service; | 5 part of service; |
6 | 6 |
7 // Some value smaller than the object ring, so requesting a large array | 7 // Some value smaller than the object ring, so requesting a large array |
8 // doesn't result in an expired ref because the elements lapped it in the | 8 // doesn't result in an expired ref because the elements lapped it in the |
9 // object ring. | 9 // object ring. |
10 const int kDefaultFieldLimit = 100; | 10 const int kDefaultFieldLimit = 100; |
(...skipping 877 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
888 } | 888 } |
889 | 889 |
890 Future setName(String newName) { | 890 Future setName(String newName) { |
891 return invokeRpc('setVMName', {'name': newName}); | 891 return invokeRpc('setVMName', {'name': newName}); |
892 } | 892 } |
893 | 893 |
894 Future<ServiceObject> getFlagList() { | 894 Future<ServiceObject> getFlagList() { |
895 return invokeRpc('getFlagList', {}); | 895 return invokeRpc('getFlagList', {}); |
896 } | 896 } |
897 | 897 |
| 898 Future enableProfiler() { |
| 899 return invokeRpc("_enableProfiler", {}); |
| 900 } |
| 901 |
898 Future<ServiceObject> _streamListen(String streamId) { | 902 Future<ServiceObject> _streamListen(String streamId) { |
899 Map params = { | 903 Map params = { |
900 'streamId': streamId, | 904 'streamId': streamId, |
901 }; | 905 }; |
902 // Ignore network errors on stream listen. | 906 // Ignore network errors on stream listen. |
903 return invokeRpc('streamListen', params) | 907 return invokeRpc('streamListen', params) |
904 .catchError((e) => ignoreNetworkErrors(e)); | 908 .catchError((e) => ignoreNetworkErrors(e)); |
905 } | 909 } |
906 | 910 |
907 Future<ServiceObject> _streamCancel(String streamId) { | 911 Future<ServiceObject> _streamCancel(String streamId) { |
(...skipping 3791 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4699 final String alias; | 4703 final String alias; |
4700 final String method; | 4704 final String method; |
4701 final String service; | 4705 final String service; |
4702 | 4706 |
4703 Service(this.alias, this.method, this.service) { | 4707 Service(this.alias, this.method, this.service) { |
4704 assert(this.alias != null); | 4708 assert(this.alias != null); |
4705 assert(this.method != null); | 4709 assert(this.method != null); |
4706 assert(this.service != null); | 4710 assert(this.service != null); |
4707 } | 4711 } |
4708 } | 4712 } |
OLD | NEW |