OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 #include "vm/service.h" | 5 #include "vm/service.h" |
6 | 6 |
7 #include "include/dart_api.h" | 7 #include "include/dart_api.h" |
8 #include "platform/globals.h" | 8 #include "platform/globals.h" |
9 | 9 |
10 #include "vm/compiler.h" | 10 #include "vm/compiler.h" |
(...skipping 1843 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1854 | 1854 |
1855 // TODO(turnidge): Consider whether the 'Success' type is proper. | 1855 // TODO(turnidge): Consider whether the 'Success' type is proper. |
1856 JSONObject jsobj(js); | 1856 JSONObject jsobj(js); |
1857 jsobj.AddProperty("type", "Success"); | 1857 jsobj.AddProperty("type", "Success"); |
1858 return true; | 1858 return true; |
1859 } | 1859 } |
1860 | 1860 |
1861 | 1861 |
1862 static RawClass* GetMetricsClass(Isolate* isolate) { | 1862 static RawClass* GetMetricsClass(Isolate* isolate) { |
1863 const Library& prof_lib = | 1863 const Library& prof_lib = |
1864 Library::Handle(isolate, Library::ProfilerLibrary()); | 1864 Library::Handle(isolate, Library::DeveloperLibrary()); |
1865 ASSERT(!prof_lib.IsNull()); | 1865 ASSERT(!prof_lib.IsNull()); |
1866 const String& metrics_cls_name = | 1866 const String& metrics_cls_name = |
1867 String::Handle(isolate, String::New("Metrics")); | 1867 String::Handle(isolate, String::New("Metrics")); |
1868 ASSERT(!metrics_cls_name.IsNull()); | 1868 ASSERT(!metrics_cls_name.IsNull()); |
1869 const Class& metrics_cls = | 1869 const Class& metrics_cls = |
1870 Class::Handle(isolate, prof_lib.LookupClass(metrics_cls_name)); | 1870 Class::Handle(isolate, prof_lib.LookupClass(metrics_cls_name)); |
1871 ASSERT(!metrics_cls.IsNull()); | 1871 ASSERT(!metrics_cls.IsNull()); |
1872 return metrics_cls.raw(); | 1872 return metrics_cls.raw(); |
1873 } | 1873 } |
1874 | 1874 |
(...skipping 749 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2624 ServiceMethodDescriptor& method = service_methods_[i]; | 2624 ServiceMethodDescriptor& method = service_methods_[i]; |
2625 if (strcmp(method_name, method.name) == 0) { | 2625 if (strcmp(method_name, method.name) == 0) { |
2626 return &method; | 2626 return &method; |
2627 } | 2627 } |
2628 } | 2628 } |
2629 return NULL; | 2629 return NULL; |
2630 } | 2630 } |
2631 | 2631 |
2632 | 2632 |
2633 } // namespace dart | 2633 } // namespace dart |
OLD | NEW |