5 #ifndef V8_LIBPLATFORM_V8_TRACING_H_
6 #define V8_LIBPLATFORM_V8_TRACING_H_
10 #include <unordered_set>
40 char phase,
const uint8_t* category_enabled_flag,
const char* name,
41 const char* scope, uint64_t id, uint64_t bind_id,
int num_args,
42 const char** arg_names,
const uint8_t* arg_types,
43 const uint64_t* arg_values,
48 char phase,
const uint8_t* category_enabled_flag,
const char* name,
49 const char* scope, uint64_t id, uint64_t bind_id,
int num_args,
50 const char** arg_names,
const uint8_t* arg_types,
51 const uint64_t* arg_values,
53 unsigned int flags,
int pid,
int tid, int64_t ts, int64_t tts,
54 uint64_t duration, uint64_t cpu_duration);
56 int pid()
const {
return pid_; }
57 int tid()
const {
return tid_; }
58 char phase()
const {
return phase_; }
60 return category_enabled_flag_;
62 const char*
name()
const {
return name_; }
63 const char*
scope()
const {
return scope_; }
64 uint64_t
id()
const {
return id_; }
65 uint64_t
bind_id()
const {
return bind_id_; }
71 return arg_convertables_;
73 unsigned int flags()
const {
return flags_; }
74 int64_t
ts() {
return ts_; }
75 int64_t
tts() {
return tts_; }
85 const uint8_t* category_enabled_flag_;
94 char* parameter_copy_storage_ =
nullptr;
99 uint64_t cpu_duration_;
130 uint32_t
seq()
const {
return seq_; }
131 size_t
size()
const {
return next_free_; }
136 size_t next_free_ = 0;
188 : enable_sampling_(
false),
189 enable_systrace_(
false),
190 enable_argument_filter_(
false) {}
208 bool enable_sampling_ : 1;
209 bool enable_systrace_ : 1;
210 bool enable_argument_filter_ : 1;
242 char phase,
const uint8_t* category_enabled_flag,
const char* name,
243 const char* scope, uint64_t id, uint64_t bind_id, int32_t num_args,
244 const char** arg_names,
const uint8_t* arg_types,
245 const uint64_t* arg_values,
249 const char* name, uint64_t handle);
258 const uint8_t* GetCategoryGroupEnabledInternal(
const char* category_group);
259 void UpdateCategoryGroupEnabledFlag(size_t category_index);
260 void UpdateCategoryGroupEnabledFlags();
264 std::unique_ptr<
base::Mutex> mutex_;