v8  9.0.257(node16.0.0)
V8 is Google's open source JavaScript engine
v8-tracing.h
Go to the documentation of this file.
1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef V8_LIBPLATFORM_V8_TRACING_H_
6 #define V8_LIBPLATFORM_V8_TRACING_H_
7 
8 #include <atomic>
9 #include <fstream>
10 #include <memory>
11 #include <unordered_set>
12 #include <vector>
13 
14 #include "libplatform/libplatform-export.h"
15 #include "v8-platform.h" // NOLINT(build/include_directory)
16 
17 namespace perfetto {
18 namespace trace_processor {
19 class TraceProcessorStorage;
20 }
21 class TracingSession;
22 }
23 
24 namespace v8 {
25 
26 namespace base {
27 class Mutex;
28 } // namespace base
29 
30 namespace platform {
31 namespace tracing {
32 
33 class TraceEventListener;
34 
35 const int kTraceMaxNumArgs = 2;
36 
38  public:
39  union ArgValue {
40  V8_DEPRECATED("use as_uint ? true : false") bool as_bool;
41  uint64_t as_uint;
42  int64_t as_int;
43  double as_double;
44  const void* as_pointer;
45  const char* as_string;
46  };
47 
48  TraceObject() = default;
49  ~TraceObject();
50  void Initialize(
51  char phase, const uint8_t* category_enabled_flag, const char* name,
52  const char* scope, uint64_t id, uint64_t bind_id, int num_args,
53  const char** arg_names, const uint8_t* arg_types,
54  const uint64_t* arg_values,
55  std::unique_ptr<v8::ConvertableToTraceFormat>* arg_convertables,
56  unsigned int flags, int64_t timestamp, int64_t cpu_timestamp);
57  void UpdateDuration(int64_t timestamp, int64_t cpu_timestamp);
59  char phase, const uint8_t* category_enabled_flag, const char* name,
60  const char* scope, uint64_t id, uint64_t bind_id, int num_args,
61  const char** arg_names, const uint8_t* arg_types,
62  const uint64_t* arg_values,
63  std::unique_ptr<v8::ConvertableToTraceFormat>* arg_convertables,
64  unsigned int flags, int pid, int tid, int64_t ts, int64_t tts,
65  uint64_t duration, uint64_t cpu_duration);
66 
67  int pid() const { return pid_; }
68  int tid() const { return tid_; }
69  char phase() const { return phase_; }
70  const uint8_t* category_enabled_flag() const {
71  return category_enabled_flag_;
72  }
73  const char* name() const { return name_; }
74  const char* scope() const { return scope_; }
75  uint64_t id() const { return id_; }
76  uint64_t bind_id() const { return bind_id_; }
77  int num_args() const { return num_args_; }
78  const char** arg_names() { return arg_names_; }
79  uint8_t* arg_types() { return arg_types_; }
80  ArgValue* arg_values() { return arg_values_; }
82  return arg_convertables_;
83  }
84  unsigned int flags() const { return flags_; }
85  int64_t ts() { return ts_; }
86  int64_t tts() { return tts_; }
87  uint64_t duration() { return duration_; }
88  uint64_t cpu_duration() { return cpu_duration_; }
89 
90  private:
91  int pid_;
92  int tid_;
93  char phase_;
94  const char* name_;
95  const char* scope_;
96  const uint8_t* category_enabled_flag_;
97  uint64_t id_;
98  uint64_t bind_id_;
99  int num_args_ = 0;
100  const char* arg_names_[kTraceMaxNumArgs];
101  uint8_t arg_types_[kTraceMaxNumArgs];
102  ArgValue arg_values_[kTraceMaxNumArgs];
103  std::unique_ptr<v8::ConvertableToTraceFormat>
104  arg_convertables_[kTraceMaxNumArgs];
105  char* parameter_copy_storage_ = nullptr;
106  unsigned int flags_;
107  int64_t ts_;
108  int64_t tts_;
109  uint64_t duration_;
110  uint64_t cpu_duration_;
111 
112  // Disallow copy and assign
113  TraceObject(const TraceObject&) = delete;
114  void operator=(const TraceObject&) = delete;
115 };
116 
118  public:
119  TraceWriter() = default;
120  virtual ~TraceWriter() = default;
121  virtual void AppendTraceEvent(TraceObject* trace_event) = 0;
122  virtual void Flush() = 0;
123 
124  static TraceWriter* CreateJSONTraceWriter(std::ostream& stream);
125  static TraceWriter* CreateJSONTraceWriter(std::ostream& stream,
126  const std::string& tag);
127 
129 
130  private:
131  // Disallow copy and assign
132  TraceWriter(const TraceWriter&) = delete;
133  void operator=(const TraceWriter&) = delete;
134 };
135 
137  public:
138  explicit TraceBufferChunk(uint32_t seq);
139 
140  void Reset(uint32_t new_seq);
141  bool IsFull() const { return next_free_ == kChunkSize; }
142  TraceObject* AddTraceEvent(size_t* event_index);
143  TraceObject* GetEventAt(size_t index) { return &chunk_[index]; }
144 
145  uint32_t seq() const { return seq_; }
146  size_t size() const { return next_free_; }
147 
148  static const size_t kChunkSize = 64;
149 
150  private:
151  size_t next_free_ = 0;
152  TraceObject chunk_[kChunkSize];
153  uint32_t seq_;
154 
155  // Disallow copy and assign
156  TraceBufferChunk(const TraceBufferChunk&) = delete;
157  void operator=(const TraceBufferChunk&) = delete;
158 };
159 
161  public:
162  TraceBuffer() = default;
163  virtual ~TraceBuffer() = default;
164 
165  virtual TraceObject* AddTraceEvent(uint64_t* handle) = 0;
166  virtual TraceObject* GetEventByHandle(uint64_t handle) = 0;
167  virtual bool Flush() = 0;
168 
169  static const size_t kRingBufferChunks = 1024;
170 
171  static TraceBuffer* CreateTraceBufferRingBuffer(size_t max_chunks,
172  TraceWriter* trace_writer);
173 
174  private:
175  // Disallow copy and assign
176  TraceBuffer(const TraceBuffer&) = delete;
177  void operator=(const TraceBuffer&) = delete;
178 };
179 
180 // Options determines how the trace buffer stores data.
182  // Record until the trace buffer is full.
184 
185  // Record until the user ends the trace. The trace buffer is a fixed size
186  // and we use it as a ring buffer during recording.
188 
189  // Record until the trace buffer is full, but with a huge buffer size.
191 
192  // Echo to console. Events are discarded.
194 };
195 
197  public:
198  typedef std::vector<std::string> StringList;
199 
201 
202  TraceConfig() : enable_systrace_(false), enable_argument_filter_(false) {}
203  TraceRecordMode GetTraceRecordMode() const { return record_mode_; }
205  return included_categories_;
206  }
207  bool IsSystraceEnabled() const { return enable_systrace_; }
208  bool IsArgumentFilterEnabled() const { return enable_argument_filter_; }
209 
210  void SetTraceRecordMode(TraceRecordMode mode) { record_mode_ = mode; }
211  void EnableSystrace() { enable_systrace_ = true; }
212  void EnableArgumentFilter() { enable_argument_filter_ = true; }
213 
214  void AddIncludedCategory(const char* included_category);
215 
216  bool IsCategoryGroupEnabled(const char* category_group) const;
217 
218  private:
219  TraceRecordMode record_mode_;
220  bool enable_systrace_ : 1;
221  bool enable_argument_filter_ : 1;
222  StringList included_categories_;
223 
224  // Disallow copy and assign
225  TraceConfig(const TraceConfig&) = delete;
226  void operator=(const TraceConfig&) = delete;
227 };
228 
229 #if defined(_MSC_VER)
230 #define V8_PLATFORM_NON_EXPORTED_BASE(code)
231  __pragma(warning(suppress : 4275)) code
232 #else
233 #define V8_PLATFORM_NON_EXPORTED_BASE(code) code
234 #endif // defined(_MSC_VER)
235 
238  public:
240  ~TracingController() override;
241 
242 #if defined(V8_USE_PERFETTO)
243  // Must be called before StartTracing() if V8_USE_PERFETTO is true. Provides
244  // the output stream for the JSON trace data.
246  // Provide an optional listener for testing that will receive trace events.
247  // Must be called before StartTracing().
249 #else // defined(V8_USE_PERFETTO)
250  // The pointer returned from GetCategoryGroupEnabled() points to a value with
251  // zero or more of the following bits. Used in this class only. The
252  // TRACE_EVENT macros should only use the value as a bool. These values must
253  // be in sync with macro values in TraceEvent.h in Blink.
255  // Category group enabled for the recording mode.
257  // Category group enabled by SetEventCallbackEnabled().
259  // Category group enabled to export events to ETW.
261  };
262 
263  // Takes ownership of |trace_buffer|.
264  void Initialize(TraceBuffer* trace_buffer);
265 
266  // v8::TracingController implementation.
267  const uint8_t* GetCategoryGroupEnabled(const char* category_group) override;
268  uint64_t AddTraceEvent(
269  char phase, const uint8_t* category_enabled_flag, const char* name,
270  const char* scope, uint64_t id, uint64_t bind_id, int32_t num_args,
271  const char** arg_names, const uint8_t* arg_types,
272  const uint64_t* arg_values,
273  std::unique_ptr<v8::ConvertableToTraceFormat>* arg_convertables,
274  unsigned int flags) override;
276  char phase, const uint8_t* category_enabled_flag, const char* name,
277  const char* scope, uint64_t id, uint64_t bind_id, int32_t num_args,
278  const char** arg_names, const uint8_t* arg_types,
279  const uint64_t* arg_values,
280  std::unique_ptr<v8::ConvertableToTraceFormat>* arg_convertables,
281  unsigned int flags, int64_t timestamp) override;
282  void UpdateTraceEventDuration(const uint8_t* category_enabled_flag,
283  const char* name, uint64_t handle) override;
284 
285  static const char* GetCategoryGroupName(const uint8_t* category_enabled_flag);
286 #endif // !defined(V8_USE_PERFETTO)
287 
289  v8::TracingController::TraceStateObserver* observer) override;
291  v8::TracingController::TraceStateObserver* observer) override;
292 
293  void StartTracing(TraceConfig* trace_config);
294  void StopTracing();
295 
296  protected:
297 #if !defined(V8_USE_PERFETTO)
298  virtual int64_t CurrentTimestampMicroseconds();
299  virtual int64_t CurrentCpuTimestampMicroseconds();
300 #endif // !defined(V8_USE_PERFETTO)
301 
302  private:
303 #if !defined(V8_USE_PERFETTO)
304  void UpdateCategoryGroupEnabledFlag(size_t category_index);
305  void UpdateCategoryGroupEnabledFlags();
306 #endif // !defined(V8_USE_PERFETTO)
307 
308  std::unique_ptr<base::Mutex> mutex_;
309  std::unique_ptr<TraceConfig> trace_config_;
310  std::atomic_bool recording_{false};
311  std::unordered_set<v8::TracingController::TraceStateObserver*> observers_;
312 
313 #if defined(V8_USE_PERFETTO)
314  std::ostream* output_stream_ = nullptr;
319 #else // !defined(V8_USE_PERFETTO)
320  std::unique_ptr<TraceBuffer> trace_buffer_;
321 #endif // !defined(V8_USE_PERFETTO)
322 
323  // Disallow copy and assign
324  TracingController(const TracingController&) = delete;
325  void operator=(const TracingController&) = delete;
326 };
327 
328 #undef V8_PLATFORM_NON_EXPORTED_BASE
329 
330 } // namespace tracing
331 } // namespace platform
332 } // namespace v8
333 
334 #endif // V8_LIBPLATFORM_V8_TRACING_H_
v8::platform::tracing::TraceBufferChunk::GetEventAt
TraceObject * GetEventAt(size_t index)
Definition: v8-tracing.h:143
v8::platform::tracing::ECHO_TO_CONSOLE
@ ECHO_TO_CONSOLE
Definition: v8-tracing.h:193
V8_PLATFORM_NON_EXPORTED_BASE
#define V8_PLATFORM_NON_EXPORTED_BASE(code)
Definition: v8-tracing.h:233
v8::platform::tracing::TraceObject::name
const char * name() const
Definition: v8-tracing.h:73
v8::platform::tracing::TraceConfig::GetTraceRecordMode
TraceRecordMode GetTraceRecordMode() const
Definition: v8-tracing.h:203
v8::platform::tracing::TraceBuffer::kRingBufferChunks
static const size_t kRingBufferChunks
Definition: v8-tracing.h:169
v8::platform::tracing::TracingController::CurrentCpuTimestampMicroseconds
virtual int64_t CurrentCpuTimestampMicroseconds()
v8::platform::tracing::TracingController::StartTracing
void StartTracing(TraceConfig *trace_config)
v8::platform::tracing::TraceObject::cpu_duration
uint64_t cpu_duration()
Definition: v8-tracing.h:88
v8::platform::tracing::TracingController::ENABLED_FOR_ETW_EXPORT
@ ENABLED_FOR_ETW_EXPORT
Definition: v8-tracing.h:260
v8::platform::tracing::TraceWriter::TraceWriter
TraceWriter()=default
v8::platform::tracing::TraceObject::category_enabled_flag
const uint8_t * category_enabled_flag() const
Definition: v8-tracing.h:70
v8::platform::tracing::TraceObject::ArgValue::as_double
double as_double
Definition: v8-tracing.h:43
v8::platform
Definition: libplatform.h:16
v8::platform::tracing::TraceObject::TraceObject
TraceObject()=default
v8::platform::tracing::TraceObject::num_args
int num_args() const
Definition: v8-tracing.h:77
v8::platform::tracing::TraceObject::id
uint64_t id() const
Definition: v8-tracing.h:75
v8::platform::tracing::TraceObject::UpdateDuration
void UpdateDuration(int64_t timestamp, int64_t cpu_timestamp)
v8::platform::tracing::TracingController::UpdateTraceEventDuration
void UpdateTraceEventDuration(const uint8_t *category_enabled_flag, const char *name, uint64_t handle) override
v8::platform::tracing::TracingController::AddTraceEvent
uint64_t AddTraceEvent(char phase, const uint8_t *category_enabled_flag, const char *name, const char *scope, uint64_t id, uint64_t bind_id, int32_t num_args, const char **arg_names, const uint8_t *arg_types, const uint64_t *arg_values, std::unique_ptr< v8::ConvertableToTraceFormat > *arg_convertables, unsigned int flags) override
v8::platform::tracing::TraceWriter::CreateJSONTraceWriter
static TraceWriter * CreateJSONTraceWriter(std::ostream &stream)
v8::platform::tracing::TraceObject::pid
int pid() const
Definition: v8-tracing.h:67
v8::platform::tracing::TraceWriter::AppendTraceEvent
virtual void AppendTraceEvent(TraceObject *trace_event)=0
v8::platform::tracing::TracingController::GetCategoryGroupEnabled
const uint8_t * GetCategoryGroupEnabled(const char *category_group) override
v8::platform::tracing::TraceObject::ts
int64_t ts()
Definition: v8-tracing.h:85
v8::platform::tracing::TraceBuffer::~TraceBuffer
virtual ~TraceBuffer()=default
v8::base
Definition: v8-tracing.h:26
v8::platform::tracing::TraceObject::Initialize
void Initialize(char phase, const uint8_t *category_enabled_flag, const char *name, const char *scope, uint64_t id, uint64_t bind_id, int num_args, const char **arg_names, const uint8_t *arg_types, const uint64_t *arg_values, std::unique_ptr< v8::ConvertableToTraceFormat > *arg_convertables, unsigned int flags, int64_t timestamp, int64_t cpu_timestamp)
v8::platform::tracing::TraceObject::arg_names
const char ** arg_names()
Definition: v8-tracing.h:78
v8::platform::tracing::TraceObject::ArgValue::as_uint
uint64_t as_uint
Definition: v8-tracing.h:41
perfetto
Definition: v8-tracing.h:17
v8::platform::tracing::TraceObject::ArgValue::as_pointer
const void * as_pointer
Definition: v8-tracing.h:44
v8::platform::tracing::kTraceMaxNumArgs
const int kTraceMaxNumArgs
Definition: v8-tracing.h:35
v8::TracingController::TraceStateObserver
Definition: v8-platform.h:357
v8::platform::tracing::TraceObject::ArgValue::as_string
const char * as_string
Definition: v8-tracing.h:45
v8::platform::tracing::TraceConfig::IsSystraceEnabled
bool IsSystraceEnabled() const
Definition: v8-tracing.h:207
v8::platform::tracing::TraceBufferChunk
Definition: v8-tracing.h:136
v8::platform::tracing::TraceConfig::CreateDefaultTraceConfig
static TraceConfig * CreateDefaultTraceConfig()
v8::platform::tracing::TraceWriter::CreateSystemInstrumentationTraceWriter
static TraceWriter * CreateSystemInstrumentationTraceWriter()
v8::platform::tracing::TracingController::StopTracing
void StopTracing()
v8::platform::tracing::TraceBufferChunk::TraceBufferChunk
TraceBufferChunk(uint32_t seq)
v8::platform::tracing::TraceObject::ArgValue
Definition: v8-tracing.h:39
v8::platform::tracing::TraceObject::phase
char phase() const
Definition: v8-tracing.h:69
v8::platform::tracing::TraceConfig::SetTraceRecordMode
void SetTraceRecordMode(TraceRecordMode mode)
Definition: v8-tracing.h:210
v8::platform::tracing::TraceConfig::TraceConfig
TraceConfig()
Definition: v8-tracing.h:202
v8::platform::tracing::TraceObject::tid
int tid() const
Definition: v8-tracing.h:68
v8::platform::tracing::TraceObject::flags
unsigned int flags() const
Definition: v8-tracing.h:84
v8::platform::tracing::TraceObject
Definition: v8-tracing.h:37
v8::platform::tracing::TraceBuffer
Definition: v8-tracing.h:160
v8::platform::tracing::TraceWriter
Definition: v8-tracing.h:117
v8::platform::tracing::TraceWriter::Flush
virtual void Flush()=0
v8::platform::tracing::TraceObject::InitializeForTesting
void InitializeForTesting(char phase, const uint8_t *category_enabled_flag, const char *name, const char *scope, uint64_t id, uint64_t bind_id, int num_args, const char **arg_names, const uint8_t *arg_types, const uint64_t *arg_values, std::unique_ptr< v8::ConvertableToTraceFormat > *arg_convertables, unsigned int flags, int pid, int tid, int64_t ts, int64_t tts, uint64_t duration, uint64_t cpu_duration)
v8::TracingController
Definition: v8-platform.h:302
v8::platform::tracing::RECORD_UNTIL_FULL
@ RECORD_UNTIL_FULL
Definition: v8-tracing.h:183
v8::platform::tracing::TraceObject::arg_types
uint8_t * arg_types()
Definition: v8-tracing.h:79
v8::platform::tracing::TraceBuffer::TraceBuffer
TraceBuffer()=default
v8::platform::tracing::TracingController::CategoryGroupEnabledFlags
CategoryGroupEnabledFlags
Definition: v8-tracing.h:254
v8::platform::tracing::TraceBuffer::Flush
virtual bool Flush()=0
v8::platform::tracing::TraceBuffer::CreateTraceBufferRingBuffer
static TraceBuffer * CreateTraceBufferRingBuffer(size_t max_chunks, TraceWriter *trace_writer)
v8::platform::tracing::TraceObject::tts
int64_t tts()
Definition: v8-tracing.h:86
v8::platform::tracing::TracingController::TracingController
TracingController()
v8::platform::tracing::TraceObject::duration
uint64_t duration()
Definition: v8-tracing.h:87
v8::platform::tracing::TraceRecordMode
TraceRecordMode
Definition: v8-tracing.h:181
v8::platform::tracing::TracingController::RemoveTraceStateObserver
void RemoveTraceStateObserver(v8::TracingController::TraceStateObserver *observer) override
v8
Definition: libplatform.h:15
v8::platform::tracing::TraceObject::bind_id
uint64_t bind_id() const
Definition: v8-tracing.h:76
v8::platform::tracing::TraceConfig::StringList
std::vector< std::string > StringList
Definition: v8-tracing.h:198
v8::platform::tracing
Definition: v8-tracing.h:31
v8::platform::tracing::TraceWriter::CreateJSONTraceWriter
static TraceWriter * CreateJSONTraceWriter(std::ostream &stream, const std::string &tag)
v8::platform::tracing::TraceObject::scope
const char * scope() const
Definition: v8-tracing.h:74
V8_DEPRECATED
#define V8_DEPRECATED(message)
Definition: v8config.h:417
v8::platform::tracing::TraceObject::arg_values
ArgValue * arg_values()
Definition: v8-tracing.h:80
v8::platform::tracing::TraceBufferChunk::AddTraceEvent
TraceObject * AddTraceEvent(size_t *event_index)
v8::platform::tracing::TraceObject::~TraceObject
~TraceObject()
V8_PLATFORM_EXPORT
#define V8_PLATFORM_EXPORT
Definition: libplatform-export.h:24
v8::platform::tracing::TraceConfig::IsCategoryGroupEnabled
bool IsCategoryGroupEnabled(const char *category_group) const
v8::platform::tracing::TracingController::GetCategoryGroupName
static const char * GetCategoryGroupName(const uint8_t *category_enabled_flag)
v8::platform::tracing::RECORD_CONTINUOUSLY
@ RECORD_CONTINUOUSLY
Definition: v8-tracing.h:187
v8::platform::tracing::TracingController
Definition: v8-tracing.h:236
v8::platform::tracing::RECORD_AS_MUCH_AS_POSSIBLE
@ RECORD_AS_MUCH_AS_POSSIBLE
Definition: v8-tracing.h:190
v8::platform::tracing::TraceObject::ArgValue::as_int
int64_t as_int
Definition: v8-tracing.h:42
v8::platform::tracing::TraceObject::arg_convertables
std::unique_ptr< v8::ConvertableToTraceFormat > * arg_convertables()
Definition: v8-tracing.h:81
v8::platform::tracing::TracingController::~TracingController
~TracingController() override
v8::platform::tracing::TraceBufferChunk::Reset
void Reset(uint32_t new_seq)
v8::ConvertableToTraceFormat
Definition: v8-platform.h:284
v8::platform::tracing::TraceConfig::EnableSystrace
void EnableSystrace()
Definition: v8-tracing.h:211
v8::platform::tracing::TracingController::ENABLED_FOR_RECORDING
@ ENABLED_FOR_RECORDING
Definition: v8-tracing.h:256
v8::platform::tracing::TraceConfig::GetEnabledCategories
const StringList & GetEnabledCategories() const
Definition: v8-tracing.h:204
v8::platform::tracing::TraceBufferChunk::kChunkSize
static const size_t kChunkSize
Definition: v8-tracing.h:148
v8::platform::tracing::TracingController::Initialize
void Initialize(TraceBuffer *trace_buffer)
v8::platform::tracing::TraceConfig::EnableArgumentFilter
void EnableArgumentFilter()
Definition: v8-tracing.h:212
v8::platform::tracing::TraceBufferChunk::IsFull
bool IsFull() const
Definition: v8-tracing.h:141
v8::platform::tracing::TracingController::ENABLED_FOR_EVENT_CALLBACK
@ ENABLED_FOR_EVENT_CALLBACK
Definition: v8-tracing.h:258
v8::platform::tracing::TraceConfig::AddIncludedCategory
void AddIncludedCategory(const char *included_category)
v8::platform::tracing::TracingController::CurrentTimestampMicroseconds
virtual int64_t CurrentTimestampMicroseconds()
v8::platform::tracing::TraceWriter::~TraceWriter
virtual ~TraceWriter()=default
v8::platform::tracing::TraceConfig
Definition: v8-tracing.h:196
v8::platform::tracing::TracingController::AddTraceStateObserver
void AddTraceStateObserver(v8::TracingController::TraceStateObserver *observer) override
v8::platform::tracing::TraceBufferChunk::size
size_t size() const
Definition: v8-tracing.h:146
v8::platform::tracing::TracingController::AddTraceEventWithTimestamp
uint64_t AddTraceEventWithTimestamp(char phase, const uint8_t *category_enabled_flag, const char *name, const char *scope, uint64_t id, uint64_t bind_id, int32_t num_args, const char **arg_names, const uint8_t *arg_types, const uint64_t *arg_values, std::unique_ptr< v8::ConvertableToTraceFormat > *arg_convertables, unsigned int flags, int64_t timestamp) override
v8::platform::tracing::TraceBuffer::AddTraceEvent
virtual TraceObject * AddTraceEvent(uint64_t *handle)=0
v8::platform::tracing::TraceConfig::IsArgumentFilterEnabled
bool IsArgumentFilterEnabled() const
Definition: v8-tracing.h:208
perfetto::trace_processor
Definition: v8-tracing.h:18
v8::platform::tracing::TraceBufferChunk::seq
uint32_t seq() const
Definition: v8-tracing.h:145
v8::platform::tracing::TraceBuffer::GetEventByHandle
virtual TraceObject * GetEventByHandle(uint64_t handle)=0