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

Side by Side Diff: runtime/include/dart_native_api.h

Issue 109803002: Profiler Take 2 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years 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 | Annotate | Revision Log
OLDNEW
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
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 * Thread Interrupter
141 * ==================
142 */
143
144 /**
145 * Enables the thread interrupter for the currently calling thread. Does not
146 * support repeated calls.
147 */
148 DART_EXPORT void Dart_EnableThreadInterrupter();
149
150 /**
151 * Disables the thread interrupter for the currently calling thread. Does
152 * not support repeated calls.
153 */
154 DART_EXPORT void Dart_DisableThreadInterrupter();
155
156 /**
157 * Shuts down the thread interrupter. Must be done before calling exit().
158 */
159 DART_EXPORT void Dart_ShutdownThreadInterrupter();
160
161 /*
139 * ================= 162 * =================
140 * Profiling support 163 * Profiling support
141 * ================= 164 * =================
142 */ 165 */
143 166
144 /* External pprof support for gathering and dumping symbolic 167 /* External pprof support for gathering and dumping symbolic
145 * information that can be used for better profile reports for 168 * information that can be used for better profile reports for
146 * dynamically generated code. */ 169 * dynamically generated code. */
147 DART_EXPORT void Dart_InitPprofSupport(); 170 DART_EXPORT void Dart_InitPprofSupport();
148 DART_EXPORT void Dart_GetPprofSymbolInfo(void** buffer, int* buffer_size); 171 DART_EXPORT void Dart_GetPprofSymbolInfo(void** buffer, int* buffer_size);
(...skipping 30 matching lines...) Expand all
179 202
180 /** 203 /**
181 * Forces all loaded classes and functions to be compiled eagerly in 204 * Forces all loaded classes and functions to be compiled eagerly in
182 * the current isolate.. 205 * the current isolate..
183 * 206 *
184 * TODO(turnidge): Document. 207 * TODO(turnidge): Document.
185 */ 208 */
186 DART_EXPORT Dart_Handle Dart_CompileAll(); 209 DART_EXPORT Dart_Handle Dart_CompileAll();
187 210
188 #endif /* INCLUDE_DART_NATIVE_API_H_ */ /* NOLINT */ 211 #endif /* INCLUDE_DART_NATIVE_API_H_ */ /* NOLINT */
OLDNEW
« runtime/bin/file.cc ('K') | « runtime/bin/utils_macos.cc ('k') | runtime/platform/thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698