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

Unified Diff: src/profiler/circular-queue.h

Issue 2105943002: Expose TickSample and its APIs in v8-profiler.h (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase & address comments. Created 4 years, 6 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
Index: src/profiler/circular-queue.h
diff --git a/src/profiler/circular-queue.h b/src/profiler/circular-queue.h
index 272843bb2df120480638082553988d6fc35704a9..e4d12d5e7998245d0d2fa65030a0a4e9363baf0a 100644
--- a/src/profiler/circular-queue.h
+++ b/src/profiler/circular-queue.h
@@ -31,6 +31,8 @@ class SamplingCircularQueue {
// Notifies the queue that the producer has complete writing data into the
// memory returned by StartEnqueue and it can be passed to the consumer.
void FinishEnqueue();
+ // Returns the current memory for enqueue.
+ T* CurrentEnqueue();
// Executed on the consumer (analyzer) thread.
// Retrieves, but does not remove, the head of this queue, returning NULL

Powered by Google App Engine
This is Rietveld 408576698