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

Unified Diff: src/profiler/circular-queue-inl.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-inl.h
diff --git a/src/profiler/circular-queue-inl.h b/src/profiler/circular-queue-inl.h
index 428945a2eed45a59b2057a91121720db68049c24..7391b459a68feeadd822bbb661f0f33a72493c22 100644
--- a/src/profiler/circular-queue-inl.h
+++ b/src/profiler/circular-queue-inl.h
@@ -55,6 +55,11 @@ void SamplingCircularQueue<T, L>::FinishEnqueue() {
enqueue_pos_ = Next(enqueue_pos_);
}
+template <typename T, unsigned L>
+T* SamplingCircularQueue<T, L>::CurrentEnqueue() {
+ base::MemoryBarrier();
+ return &enqueue_pos_->record;
+}
template<typename T, unsigned L>
typename SamplingCircularQueue<T, L>::Entry* SamplingCircularQueue<T, L>::Next(

Powered by Google App Engine
This is Rietveld 408576698