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

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

Issue 2996803002: Add current rss and embedder name to Observatory (Closed)
Patch Set: Managing null currentRSS in graph tooltip 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
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 5907 matching lines...) Expand 10 before | Expand all | Expand 10 after
5918 return; 5918 return;
5919 } 5919 }
5920 5920
5921 DART_EXPORT void Dart_RegisterRootServiceRequestCallback( 5921 DART_EXPORT void Dart_RegisterRootServiceRequestCallback(
5922 const char* name, 5922 const char* name,
5923 Dart_ServiceRequestCallback callback, 5923 Dart_ServiceRequestCallback callback,
5924 void* user_data) { 5924 void* user_data) {
5925 return; 5925 return;
5926 } 5926 }
5927 5927
5928 DART_EXPORT void Dart_SetGetEmbedderInformationCallback(
5929 Dart_GetEmbedderInformation get_embedder_information) {
5930 return;
5931 }
5932
5928 DART_EXPORT Dart_Handle Dart_SetServiceStreamCallbacks( 5933 DART_EXPORT Dart_Handle Dart_SetServiceStreamCallbacks(
5929 Dart_ServiceStreamListenCallback listen_callback, 5934 Dart_ServiceStreamListenCallback listen_callback,
5930 Dart_ServiceStreamCancelCallback cancel_callback) { 5935 Dart_ServiceStreamCancelCallback cancel_callback) {
5931 return Api::Success(); 5936 return Api::Success();
5932 } 5937 }
5933 5938
5934 DART_EXPORT Dart_Handle Dart_ServiceSendDataEvent(const char* stream_id, 5939 DART_EXPORT Dart_Handle Dart_ServiceSendDataEvent(const char* stream_id,
5935 const char* event_kind, 5940 const char* event_kind,
5936 const uint8_t* bytes, 5941 const uint8_t* bytes,
5937 intptr_t bytes_length) { 5942 intptr_t bytes_length) {
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
5983 5988
5984 DART_EXPORT void Dart_RegisterRootServiceRequestCallback( 5989 DART_EXPORT void Dart_RegisterRootServiceRequestCallback(
5985 const char* name, 5990 const char* name,
5986 Dart_ServiceRequestCallback callback, 5991 Dart_ServiceRequestCallback callback,
5987 void* user_data) { 5992 void* user_data) {
5988 if (FLAG_support_service) { 5993 if (FLAG_support_service) {
5989 Service::RegisterRootEmbedderCallback(name, callback, user_data); 5994 Service::RegisterRootEmbedderCallback(name, callback, user_data);
5990 } 5995 }
5991 } 5996 }
5992 5997
5998 DART_EXPORT void Dart_SetGetEmbedderInformationCallback(
5999 Dart_GetEmbedderInformation get_embedder_information) {
6000 if (FLAG_support_service) {
6001 Service::SetGetEmbedderInformationCallback(get_embedder_information);
6002 }
6003 }
6004
5993 DART_EXPORT Dart_Handle Dart_SetServiceStreamCallbacks( 6005 DART_EXPORT Dart_Handle Dart_SetServiceStreamCallbacks(
5994 Dart_ServiceStreamListenCallback listen_callback, 6006 Dart_ServiceStreamListenCallback listen_callback,
5995 Dart_ServiceStreamCancelCallback cancel_callback) { 6007 Dart_ServiceStreamCancelCallback cancel_callback) {
5996 if (!FLAG_support_service) { 6008 if (!FLAG_support_service) {
5997 return Api::Success(); 6009 return Api::Success();
5998 } 6010 }
5999 if (listen_callback != NULL) { 6011 if (listen_callback != NULL) {
6000 if (Service::stream_listen_callback() != NULL) { 6012 if (Service::stream_listen_callback() != NULL) {
6001 return Api::NewError( 6013 return Api::NewError(
6002 "%s permits only one listen callback to be registered, please " 6014 "%s permits only one listen callback to be registered, please "
(...skipping 779 matching lines...) Expand 10 before | Expand all | Expand 10 after
6782 #endif 6794 #endif
6783 } 6795 }
6784 6796
6785 DART_EXPORT void Dart_DumpNativeStackTrace(void* context) { 6797 DART_EXPORT void Dart_DumpNativeStackTrace(void* context) {
6786 #ifndef PRODUCT 6798 #ifndef PRODUCT
6787 Profiler::DumpStackTrace(context); 6799 Profiler::DumpStackTrace(context);
6788 #endif 6800 #endif
6789 } 6801 }
6790 6802
6791 } // namespace dart 6803 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698