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

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

Issue 2999933002: Revert "Add current rss and embedder name to Observatory" (Closed)
Patch Set: Created 3 years, 4 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
« no previous file with comments | « runtime/vm/benchmark_test.cc ('k') | runtime/vm/metrics.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "include/dart_api.h" 5 #include "include/dart_api.h"
6 #include "include/dart_mirrors_api.h" 6 #include "include/dart_mirrors_api.h"
7 #include "include/dart_native_api.h" 7 #include "include/dart_native_api.h"
8 8
9 #include "lib/stacktrace.h" 9 #include "lib/stacktrace.h"
10 #include "platform/assert.h" 10 #include "platform/assert.h"
(...skipping 5913 matching lines...) Expand 10 before | Expand all | Expand 10 after
5924 return; 5924 return;
5925 } 5925 }
5926 5926
5927 DART_EXPORT void Dart_RegisterRootServiceRequestCallback( 5927 DART_EXPORT void Dart_RegisterRootServiceRequestCallback(
5928 const char* name, 5928 const char* name,
5929 Dart_ServiceRequestCallback callback, 5929 Dart_ServiceRequestCallback callback,
5930 void* user_data) { 5930 void* user_data) {
5931 return; 5931 return;
5932 } 5932 }
5933 5933
5934 DART_EXPORT void Dart_SetEmbedderInformationCallback(
5935 Dart_EmbedderInformationCalback calback) {
5936 return;
5937 }
5938
5939 DART_EXPORT Dart_Handle Dart_SetServiceStreamCallbacks( 5934 DART_EXPORT Dart_Handle Dart_SetServiceStreamCallbacks(
5940 Dart_ServiceStreamListenCallback listen_callback, 5935 Dart_ServiceStreamListenCallback listen_callback,
5941 Dart_ServiceStreamCancelCallback cancel_callback) { 5936 Dart_ServiceStreamCancelCallback cancel_callback) {
5942 return Api::Success(); 5937 return Api::Success();
5943 } 5938 }
5944 5939
5945 DART_EXPORT Dart_Handle Dart_ServiceSendDataEvent(const char* stream_id, 5940 DART_EXPORT Dart_Handle Dart_ServiceSendDataEvent(const char* stream_id,
5946 const char* event_kind, 5941 const char* event_kind,
5947 const uint8_t* bytes, 5942 const uint8_t* bytes,
5948 intptr_t bytes_length) { 5943 intptr_t bytes_length) {
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
5994 5989
5995 DART_EXPORT void Dart_RegisterRootServiceRequestCallback( 5990 DART_EXPORT void Dart_RegisterRootServiceRequestCallback(
5996 const char* name, 5991 const char* name,
5997 Dart_ServiceRequestCallback callback, 5992 Dart_ServiceRequestCallback callback,
5998 void* user_data) { 5993 void* user_data) {
5999 if (FLAG_support_service) { 5994 if (FLAG_support_service) {
6000 Service::RegisterRootEmbedderCallback(name, callback, user_data); 5995 Service::RegisterRootEmbedderCallback(name, callback, user_data);
6001 } 5996 }
6002 } 5997 }
6003 5998
6004 DART_EXPORT void Dart_SetEmbedderInformationCallback(
6005 Dart_EmbedderInformationCallback callback) {
6006 if (FLAG_support_service) {
6007 Service::SetEmbedderInformationCallback(callback);
6008 }
6009 }
6010
6011 DART_EXPORT Dart_Handle Dart_SetServiceStreamCallbacks( 5999 DART_EXPORT Dart_Handle Dart_SetServiceStreamCallbacks(
6012 Dart_ServiceStreamListenCallback listen_callback, 6000 Dart_ServiceStreamListenCallback listen_callback,
6013 Dart_ServiceStreamCancelCallback cancel_callback) { 6001 Dart_ServiceStreamCancelCallback cancel_callback) {
6014 if (!FLAG_support_service) { 6002 if (!FLAG_support_service) {
6015 return Api::Success(); 6003 return Api::Success();
6016 } 6004 }
6017 if (listen_callback != NULL) { 6005 if (listen_callback != NULL) {
6018 if (Service::stream_listen_callback() != NULL) { 6006 if (Service::stream_listen_callback() != NULL) {
6019 return Api::NewError( 6007 return Api::NewError(
6020 "%s permits only one listen callback to be registered, please " 6008 "%s permits only one listen callback to be registered, please "
(...skipping 779 matching lines...) Expand 10 before | Expand all | Expand 10 after
6800 #endif 6788 #endif
6801 } 6789 }
6802 6790
6803 DART_EXPORT void Dart_DumpNativeStackTrace(void* context) { 6791 DART_EXPORT void Dart_DumpNativeStackTrace(void* context) {
6804 #ifndef PRODUCT 6792 #ifndef PRODUCT
6805 Profiler::DumpStackTrace(context); 6793 Profiler::DumpStackTrace(context);
6806 #endif 6794 #endif
6807 } 6795 }
6808 6796
6809 } // namespace dart 6797 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/benchmark_test.cc ('k') | runtime/vm/metrics.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698