| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 2 * Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 3 * for details. All rights reserved. Use of this source code is governed by a | 3 * for details. All rights reserved. Use of this source code is governed by a |
| 4 * BSD-style license that can be found in the LICENSE file. | 4 * BSD-style license that can be found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 #ifndef INCLUDE_DART_NATIVE_API_H_ | 7 #ifndef INCLUDE_DART_NATIVE_API_H_ |
| 8 #define INCLUDE_DART_NATIVE_API_H_ | 8 #define INCLUDE_DART_NATIVE_API_H_ |
| 9 | 9 |
| 10 #include "include/dart_api.h" | 10 #include "include/dart_api.h" |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 * The port must have been allocated by a call to Dart_NewNativePort. | 129 * The port must have been allocated by a call to Dart_NewNativePort. |
| 130 * | 130 * |
| 131 * \param native_port_id The id of the native port to close. | 131 * \param native_port_id The id of the native port to close. |
| 132 * | 132 * |
| 133 * \return Returns true if the port was closed successfully. | 133 * \return Returns true if the port was closed successfully. |
| 134 */ | 134 */ |
| 135 DART_EXPORT bool Dart_CloseNativePort(Dart_Port native_port_id); | 135 DART_EXPORT bool Dart_CloseNativePort(Dart_Port native_port_id); |
| 136 | 136 |
| 137 | 137 |
| 138 /* | 138 /* |
| 139 * ================= | |
| 140 * Profiling support | |
| 141 * ================= | |
| 142 */ | |
| 143 | |
| 144 /* External pprof support for gathering and dumping symbolic | |
| 145 * information that can be used for better profile reports for | |
| 146 * dynamically generated code. */ | |
| 147 DART_EXPORT void Dart_InitPprofSupport(); | |
| 148 DART_EXPORT void Dart_GetPprofSymbolInfo(void** buffer, int* buffer_size); | |
| 149 | |
| 150 /* Support for generating symbol maps for use by the Linux perf tool. */ | |
| 151 DART_EXPORT void Dart_InitPerfEventsSupport(void* perf_events_file); | |
| 152 | |
| 153 | |
| 154 /* | |
| 155 * ================== | 139 * ================== |
| 156 * Verification Tools | 140 * Verification Tools |
| 157 * ================== | 141 * ================== |
| 158 */ | 142 */ |
| 159 | 143 |
| 160 /** | 144 /** |
| 161 * Forces all loaded classes and functions to be compiled eagerly in | 145 * Forces all loaded classes and functions to be compiled eagerly in |
| 162 * the current isolate.. | 146 * the current isolate.. |
| 163 * | 147 * |
| 164 * TODO(turnidge): Document. | 148 * TODO(turnidge): Document. |
| 165 */ | 149 */ |
| 166 DART_EXPORT Dart_Handle Dart_CompileAll(); | 150 DART_EXPORT Dart_Handle Dart_CompileAll(); |
| 167 | 151 |
| 168 #endif /* INCLUDE_DART_NATIVE_API_H_ */ /* NOLINT */ | 152 #endif /* INCLUDE_DART_NATIVE_API_H_ */ /* NOLINT */ |
| OLD | NEW |