| Index: base/debug/trace_event_impl.h
|
| diff --git a/base/debug/trace_event_impl.h b/base/debug/trace_event_impl.h
|
| index c1863738f5c07f1d8adbacaf697746d55cfd9c8e..6928f0ea0977eea385748f7dea993856821c07bd 100644
|
| --- a/base/debug/trace_event_impl.h
|
| +++ b/base/debug/trace_event_impl.h
|
| @@ -281,6 +281,19 @@ class BASE_EXPORT TraceLog {
|
| const char* name,
|
| const void* id,
|
| const std::string& extra);
|
| + int AddTraceRawEvent(char phase,
|
| + const unsigned char* category_enabled,
|
| + const char* thread_name,
|
| + const char* name,
|
| + int64 timestamp,
|
| + unsigned long long id,
|
| + int num_args,
|
| + const char** arg_names,
|
| + const unsigned char* arg_types,
|
| + const unsigned long long* arg_values,
|
| + int threshold_begin_id,
|
| + long long threshold,
|
| + unsigned char flags);
|
|
|
| // For every matching event, a notification will be fired. NOTE: the
|
| // notification will fire for each matching event that has already occurred
|
| @@ -355,6 +368,21 @@ class BASE_EXPORT TraceLog {
|
| void AddClockSyncMetadataEvents();
|
| #endif
|
|
|
| + int AddTraceEventInternal(NotificationHelper& notifier,
|
| + TimeTicks timestamp,
|
| + char phase,
|
| + const unsigned char* category_enabled,
|
| + int thread_id,
|
| + const char* name,
|
| + unsigned long long id,
|
| + int num_args,
|
| + const char** arg_names,
|
| + const unsigned char* arg_types,
|
| + const unsigned long long* arg_values,
|
| + int threshold_begin_id,
|
| + long long threshold,
|
| + unsigned char flags);
|
| +
|
| // TODO(nduca): switch to per-thread trace buffers to reduce thread
|
| // synchronization.
|
| // This lock protects TraceLog member accesses from arbitrary threads.
|
| @@ -369,6 +397,9 @@ class BASE_EXPORT TraceLog {
|
|
|
| base::hash_map<int, std::string> thread_names_;
|
|
|
| + base::hash_map<std::string, int> fake_thread_names_;
|
| + int next_fake_thread_id_;
|
| +
|
| // XORed with TraceID to make it unlikely to collide with other processes.
|
| unsigned long long process_id_hash_;
|
|
|
|
|