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

Unified Diff: runtime/include/dart_api.h

Issue 297183003: Reduce CPU usage when no isolates need to be profiled. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/stdio.cc ('k') | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/include/dart_api.h
diff --git a/runtime/include/dart_api.h b/runtime/include/dart_api.h
index 7aded5027f53762f4a97d5039e2c0becbd363390..2f844f349322d27ba5d6bbfc82073c178a5494f4 100755
--- a/runtime/include/dart_api.h
+++ b/runtime/include/dart_api.h
@@ -982,6 +982,16 @@ DART_EXPORT void Dart_EnterIsolate(Dart_Isolate isolate);
* Describe whether isolates are allowed to migrate. */
/**
+ * Notifies the VM that the current isolate is about to make a blocking call.
+ */
+DART_EXPORT void Dart_IsolateBlocked();
+
+/**
+ * Notifies the VM that the current isolate is no longer blocked.
+ */
+DART_EXPORT void Dart_IsolateUnblocked();
+
+/**
* Exits an isolate. After this call, Dart_CurrentIsolate will
* return NULL.
*
« no previous file with comments | « runtime/bin/stdio.cc ('k') | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698