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

Unified Diff: runtime/include/dart_api.h

Issue 1425093006: Revert "Switch profiler from isolates to threads" (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month 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/dartutils.h ('k') | runtime/tests/vm/vm.status » ('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 29826af16ee46a305255b3649f4bdcdf7c70a045..e79a5755038df1a0dfed9296ff28577c00cc312a 100755
--- a/runtime/include/dart_api.h
+++ b/runtime/include/dart_api.h
@@ -1027,25 +1027,14 @@ DART_EXPORT Dart_Handle Dart_DebugName();
DART_EXPORT void Dart_EnterIsolate(Dart_Isolate isolate);
/**
- * Notifies the VM that the current thread should not be profiled until a
- * matching call to Dart_ThreadEnableProfiling is made.
- *
- * NOTE: By default, if a thread has entered an isolate it will be profiled.
- * This function should be used when an embedder knows a thread is about
- * to make a blocking call and wants to avoid unnecessary interrupts by
- * the profiler.
+ * Notifies the VM that the current isolate is about to make a blocking call.
*/
-DART_EXPORT void Dart_ThreadDisableProfiling();
+DART_EXPORT void Dart_IsolateBlocked();
/**
- * Notifies the VM that the current thread should be profiled.
- *
- * NOTE: It is only legal to call this function *after* calling
- * Dart_ThreadDisableProfiling.
- *
- * NOTE: By default, if a thread has entered an isolate it will be profiled.
+ * Notifies the VM that the current isolate is no longer blocked.
*/
-DART_EXPORT void Dart_ThreadEnableProfiling();
+DART_EXPORT void Dart_IsolateUnblocked();
/**
* Exits an isolate. After this call, Dart_CurrentIsolate will
« no previous file with comments | « runtime/bin/dartutils.h ('k') | runtime/tests/vm/vm.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698