| 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 * information that can be used for better profile reports for | 145 * information that can be used for better profile reports for |
| 146 * dynamically generated code. */ | 146 * dynamically generated code. */ |
| 147 DART_EXPORT void Dart_InitPprofSupport(); | 147 DART_EXPORT void Dart_InitPprofSupport(); |
| 148 DART_EXPORT void Dart_GetPprofSymbolInfo(void** buffer, int* buffer_size); | 148 DART_EXPORT void Dart_GetPprofSymbolInfo(void** buffer, int* buffer_size); |
| 149 | 149 |
| 150 /* Support for generating symbol maps for use by the Linux perf tool. */ | 150 /* Support for generating symbol maps for use by the Linux perf tool. */ |
| 151 DART_EXPORT void Dart_InitPerfEventsSupport(void* perf_events_file); | 151 DART_EXPORT void Dart_InitPerfEventsSupport(void* perf_events_file); |
| 152 | 152 |
| 153 | 153 |
| 154 /* | 154 /* |
| 155 * ============= | |
| 156 * Heap Profiler | |
| 157 * ============= | |
| 158 */ | |
| 159 | |
| 160 /** | |
| 161 * Generates a heap profile. | |
| 162 * | |
| 163 * \param callback A function pointer that will be repeatedly invoked | |
| 164 * with heap profile data. | |
| 165 * \param stream A pointer that will be passed to the callback. This | |
| 166 * is a convenient way to provide an open stream to the callback. | |
| 167 * | |
| 168 * \return Success if the heap profile is successful. | |
| 169 */ | |
| 170 DART_EXPORT Dart_Handle Dart_HeapProfile(Dart_FileWriteCallback callback, | |
| 171 void* stream); | |
| 172 | |
| 173 | |
| 174 /* | |
| 175 * ================== | 155 * ================== |
| 176 * Verification Tools | 156 * Verification Tools |
| 177 * ================== | 157 * ================== |
| 178 */ | 158 */ |
| 179 | 159 |
| 180 /** | 160 /** |
| 181 * Forces all loaded classes and functions to be compiled eagerly in | 161 * Forces all loaded classes and functions to be compiled eagerly in |
| 182 * the current isolate.. | 162 * the current isolate.. |
| 183 * | 163 * |
| 184 * TODO(turnidge): Document. | 164 * TODO(turnidge): Document. |
| 185 */ | 165 */ |
| 186 DART_EXPORT Dart_Handle Dart_CompileAll(); | 166 DART_EXPORT Dart_Handle Dart_CompileAll(); |
| 187 | 167 |
| 188 #endif /* INCLUDE_DART_NATIVE_API_H_ */ /* NOLINT */ | 168 #endif /* INCLUDE_DART_NATIVE_API_H_ */ /* NOLINT */ |
| OLD | NEW |