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

Side by Side Diff: runtime/vm/service.cc

Issue 1159003002: Make several service protocol RPCs private. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 7 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) 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 2602 matching lines...) Expand 10 before | Expand all | Expand 10 after
2613 { "_respondWithMalformedObject", RespondWithMalformedObject, 2613 { "_respondWithMalformedObject", RespondWithMalformedObject,
2614 NULL }, 2614 NULL },
2615 { "_triggerEchoEvent", TriggerEchoEvent, 2615 { "_triggerEchoEvent", TriggerEchoEvent,
2616 NULL }, 2616 NULL },
2617 { "addBreakpoint", AddBreakpoint, 2617 { "addBreakpoint", AddBreakpoint,
2618 add_breakpoint_params }, 2618 add_breakpoint_params },
2619 { "addBreakpointAtEntry", AddBreakpointAtEntry, 2619 { "addBreakpointAtEntry", AddBreakpointAtEntry,
2620 add_breakpoint_at_entry_params }, 2620 add_breakpoint_at_entry_params },
2621 { "_addBreakpointAtActivation", AddBreakpointAtActivation, 2621 { "_addBreakpointAtActivation", AddBreakpointAtActivation,
2622 add_breakpoint_at_activation_params }, 2622 add_breakpoint_at_activation_params },
2623 { "clearCpuProfile", ClearCpuProfile, 2623 { "_clearCpuProfile", ClearCpuProfile,
2624 clear_cpu_profile_params }, 2624 clear_cpu_profile_params },
2625 { "evaluate", Evaluate, 2625 { "evaluate", Evaluate,
2626 evaluate_params }, 2626 evaluate_params },
2627 { "evaluateInFrame", EvaluateInFrame, 2627 { "evaluateInFrame", EvaluateInFrame,
2628 evaluate_in_frame_params }, 2628 evaluate_in_frame_params },
2629 { "_getAllocationProfile", GetAllocationProfile, 2629 { "_getAllocationProfile", GetAllocationProfile,
2630 get_allocation_profile_params }, 2630 get_allocation_profile_params },
2631 { "_getCallSiteData", GetCallSiteData, 2631 { "_getCallSiteData", GetCallSiteData,
2632 get_call_site_data_params }, 2632 get_call_site_data_params },
2633 { "getClassList", GetClassList, 2633 { "getClassList", GetClassList,
2634 get_class_list_params }, 2634 get_class_list_params },
2635 { "getCoverage", GetCoverage, 2635 { "_getCoverage", GetCoverage,
2636 get_coverage_params }, 2636 get_coverage_params },
2637 { "getCpuProfile", GetCpuProfile, 2637 { "_getCpuProfile", GetCpuProfile,
2638 get_cpu_profile_params }, 2638 get_cpu_profile_params },
2639 { "getFlagList", GetFlagList , 2639 { "getFlagList", GetFlagList ,
2640 get_flag_list_params }, 2640 get_flag_list_params },
2641 { "getHeapMap", GetHeapMap, 2641 { "_getHeapMap", GetHeapMap,
2642 get_heap_map_params }, 2642 get_heap_map_params },
2643 { "_getInboundReferences", GetInboundReferences, 2643 { "_getInboundReferences", GetInboundReferences,
2644 get_inbound_references_params }, 2644 get_inbound_references_params },
2645 { "_getInstances", GetInstances, 2645 { "_getInstances", GetInstances,
2646 get_instances_params }, 2646 get_instances_params },
2647 { "getIsolate", GetIsolate, 2647 { "getIsolate", GetIsolate,
2648 get_isolate_params }, 2648 get_isolate_params },
2649 { "getIsolateMetric", GetIsolateMetric, 2649 { "_getIsolateMetric", GetIsolateMetric,
2650 get_isolate_metric_params }, 2650 get_isolate_metric_params },
2651 { "getIsolateMetricList", GetIsolateMetricList, 2651 { "_getIsolateMetricList", GetIsolateMetricList,
2652 get_isolate_metric_list_params }, 2652 get_isolate_metric_list_params },
2653 { "getObject", GetObject, 2653 { "getObject", GetObject,
2654 get_object_params }, 2654 get_object_params },
2655 { "getObjectByAddress", GetObjectByAddress, 2655 { "_getObjectByAddress", GetObjectByAddress,
2656 get_object_by_address_params }, 2656 get_object_by_address_params },
2657 { "_getRetainedSize", GetRetainedSize, 2657 { "_getRetainedSize", GetRetainedSize,
2658 get_retained_size_params }, 2658 get_retained_size_params },
2659 { "_getRetainingPath", GetRetainingPath, 2659 { "_getRetainingPath", GetRetainingPath,
2660 get_retaining_path_params }, 2660 get_retaining_path_params },
2661 { "getStack", GetStack, 2661 { "getStack", GetStack,
2662 get_stack_params }, 2662 get_stack_params },
2663 { "getTagProfile", GetTagProfile, 2663 { "_getTagProfile", GetTagProfile,
2664 get_tag_profile_params }, 2664 get_tag_profile_params },
2665 { "getTypeArgumentsList", GetTypeArgumentsList, 2665 { "_getTypeArgumentsList", GetTypeArgumentsList,
2666 get_type_arguments_list_params }, 2666 get_type_arguments_list_params },
2667 { "getVM", GetVM, 2667 { "getVM", GetVM,
2668 get_vm_params }, 2668 get_vm_params },
2669 { "getVMMetric", GetVMMetric, 2669 { "_getVMMetric", GetVMMetric,
2670 get_vm_metric_params }, 2670 get_vm_metric_params },
2671 { "getVMMetricList", GetVMMetricList, 2671 { "_getVMMetricList", GetVMMetricList,
2672 get_vm_metric_list_params }, 2672 get_vm_metric_list_params },
2673 { "pause", Pause, 2673 { "pause", Pause,
2674 pause_params }, 2674 pause_params },
2675 { "removeBreakpoint", RemoveBreakpoint, 2675 { "removeBreakpoint", RemoveBreakpoint,
2676 remove_breakpoint_params }, 2676 remove_breakpoint_params },
2677 { "resume", Resume, 2677 { "resume", Resume,
2678 resume_params }, 2678 resume_params },
2679 { "requestHeapSnapshot", RequestHeapSnapshot, 2679 { "_requestHeapSnapshot", RequestHeapSnapshot,
2680 request_heap_snapshot_params }, 2680 request_heap_snapshot_params },
2681 { "setFlag", SetFlag, 2681 { "_setFlag", SetFlag,
2682 set_flags_params }, 2682 set_flags_params },
2683 { "setName", SetName, 2683 { "setName", SetName,
2684 set_name_params }, 2684 set_name_params },
2685 }; 2685 };
2686 2686
2687 2687
2688 ServiceMethodDescriptor* FindMethod(const char* method_name) { 2688 ServiceMethodDescriptor* FindMethod(const char* method_name) {
2689 intptr_t num_methods = sizeof(service_methods_) / 2689 intptr_t num_methods = sizeof(service_methods_) /
2690 sizeof(service_methods_[0]); 2690 sizeof(service_methods_[0]);
2691 for (intptr_t i = 0; i < num_methods; i++) { 2691 for (intptr_t i = 0; i < num_methods; i++) {
2692 ServiceMethodDescriptor& method = service_methods_[i]; 2692 ServiceMethodDescriptor& method = service_methods_[i];
2693 if (strcmp(method_name, method.name) == 0) { 2693 if (strcmp(method_name, method.name) == 0) {
2694 return &method; 2694 return &method;
2695 } 2695 }
2696 } 2696 }
2697 return NULL; 2697 return NULL;
2698 } 2698 }
2699 2699
2700 2700
2701 } // namespace dart 2701 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/observatory/tests/service/native_metrics_test.dart ('k') | runtime/vm/service/service.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698