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

Unified Diff: src/profiler/cpu-profiler.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: 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/cpu-profiler.h
diff --git a/src/profiler/cpu-profiler.h b/src/profiler/cpu-profiler.h
index d354aeb0469584ee27bdf94429461e262d51fd8e..c2fd4095bf700ede8ddaa57db41b41c469640156 100644
--- a/src/profiler/cpu-profiler.h
+++ b/src/profiler/cpu-profiler.h
@@ -7,6 +7,7 @@
#include <memory>
+#include "include/v8-profiler.h"
#include "src/allocation.h"
#include "src/base/atomic-utils.h"
#include "src/base/atomicops.h"
@@ -17,7 +18,6 @@
#include "src/locked-queue.h"
#include "src/profiler/circular-queue.h"
#include "src/profiler/profiler-listener.h"
-#include "src/profiler/tick-sample.h"
namespace v8 {
namespace internal {
@@ -110,7 +110,8 @@ class TickSampleEventRecord {
explicit TickSampleEventRecord(unsigned order) : order(order) { }
unsigned order;
- TickSample sample;
+ base::TimeTicks timestamp;
+ v8::TickSample sample;
};
@@ -152,7 +153,7 @@ class ProfilerEventsProcessor : public base::Thread {
// queue (because the structure is of fixed width, but usually not all
// stack frame entries are filled.) This method returns a pointer to the
// next record of the buffer.
- inline TickSample* StartTickSample();
+ inline v8::TickSample* StartTickSample();
inline void FinishTickSample();
// SamplingCircularQueue has stricter alignment requirements than a normal new
@@ -210,7 +211,7 @@ class CpuProfiler : public CodeEventObserver {
void CodeEventHandler(const CodeEventsContainer& evt_rec) override;
// Invoked from stack sampler (thread or signal handler.)
- inline TickSample* StartTickSample();
+ inline v8::TickSample* StartTickSample();
inline void FinishTickSample();
bool is_profiling() const { return is_profiling_; }

Powered by Google App Engine
This is Rietveld 408576698