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

Unified Diff: include/v8-profiler.h

Issue 1631043002: Add CollectSample API function to CpuProfiler (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix tests. Created 4 years, 11 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 | « no previous file | src/api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/v8-profiler.h
diff --git a/include/v8-profiler.h b/include/v8-profiler.h
index a991aa059d18b4d70e35e1e3da8b46183598c86b..007ae2eca55e411981171e3a34396f06f5b0236e 100644
--- a/include/v8-profiler.h
+++ b/include/v8-profiler.h
@@ -207,6 +207,13 @@ class V8_EXPORT CpuProfiler {
CpuProfile* StopProfiling(Local<String> title);
/**
+ * Force collection of a sample. Must be called on the VM thread.
+ * Recording the forced sample does not contribute to the aggregated
+ * profile statistics.
+ */
+ void CollectSample();
+
+ /**
* Tells the profiler whether the embedder is idle.
*/
void SetIdle(bool is_idle);
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698