| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 #ifndef INCLUDE_DART_DEBUGGER_API_H_ | 5 #ifndef INCLUDE_DART_DEBUGGER_API_H_ |
| 6 #define INCLUDE_DART_DEBUGGER_API_H_ | 6 #define INCLUDE_DART_DEBUGGER_API_H_ |
| 7 | 7 |
| 8 #include "include/dart_api.h" | 8 #include "include/dart_api.h" |
| 9 | 9 |
| 10 typedef struct _Dart_Breakpoint* Dart_Breakpoint; | 10 typedef struct _Dart_Breakpoint* Dart_Breakpoint; |
| (...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 697 DART_EXPORT Dart_Isolate Dart_GetIsolate(Dart_IsolateId isolate_id); | 697 DART_EXPORT Dart_Isolate Dart_GetIsolate(Dart_IsolateId isolate_id); |
| 698 | 698 |
| 699 | 699 |
| 700 /** | 700 /** |
| 701 * Returns the isolate id for an isolate. | 701 * Returns the isolate id for an isolate. |
| 702 * | 702 * |
| 703 * \return The Dart_IsolateId value corresponding to the isolate. | 703 * \return The Dart_IsolateId value corresponding to the isolate. |
| 704 */ | 704 */ |
| 705 DART_EXPORT Dart_IsolateId Dart_GetIsolateId(Dart_Isolate isolate); | 705 DART_EXPORT Dart_IsolateId Dart_GetIsolateId(Dart_Isolate isolate); |
| 706 | 706 |
| 707 | |
| 708 /** | |
| 709 * Returns VM status information. VM status is implemented using a | |
| 710 * different status plug-in for each type of status; for example, there | |
| 711 * might be an "isolate" plug-in that returns information about the | |
| 712 * current isolates. | |
| 713 * | |
| 714 * To get a list of status types, this function is called with a | |
| 715 * status_type parameter of "statustypes". This list is useful when | |
| 716 * building a status dashboard. | |
| 717 * | |
| 718 * TODO(tball): we need to figure out which isolate this command needs | |
| 719 * to be sent to after parsing the string and then send an OOB message | |
| 720 * to that isolate. | |
| 721 * | |
| 722 * \param request A REST-like string, which uses '/' to separate | |
| 723 * parameters. The first parameter is always the status type. | |
| 724 * | |
| 725 * \return The requested status as a JSON formatted string, with the | |
| 726 * contents defined by the status plug-in. The caller is responsible | |
| 727 * for freeing this string. | |
| 728 */ | |
| 729 DART_EXPORT char* Dart_GetVmStatus(const char* request); | |
| 730 | |
| 731 #endif // INCLUDE_DART_DEBUGGER_API_H_ | 707 #endif // INCLUDE_DART_DEBUGGER_API_H_ |
| OLD | NEW |