Index: base/debug/trace_event_impl.h |
diff --git a/base/debug/trace_event_impl.h b/base/debug/trace_event_impl.h |
index 51e2e1e5df2253b2bc8ea5e70c20135c2f634e56..9af0490014aed30ba973f41882dc79157f382e2a 100644 |
--- a/base/debug/trace_event_impl.h |
+++ b/base/debug/trace_event_impl.h |
@@ -6,6 +6,7 @@ |
#ifndef BASE_DEBUG_TRACE_EVENT_IMPL_H_ |
#define BASE_DEBUG_TRACE_EVENT_IMPL_H_ |
+#include <stack> |
#include <string> |
#include <vector> |
@@ -261,7 +262,10 @@ class BASE_EXPORT TraceLog { |
RECORD_CONTINUOUSLY = 1 << 1, |
// Enable the sampling profiler. |
- ENABLE_SAMPLING = 1 << 2 |
+ ENABLE_SAMPLING = 1 << 2, |
+ |
+ // Echo to VLOG. Events are discared. |
+ ECHO_TO_VLOG = 1 << 3 |
}; |
static TraceLog* GetInstance(); |
@@ -496,6 +500,8 @@ class BASE_EXPORT TraceLog { |
ObserverList<EnabledStateChangedObserver> enabled_state_observer_list_; |
base::hash_map<int, std::string> thread_names_; |
+ base::hash_map<int, std::stack<TimeTicks> > thread_event_start_times_; |
+ base::hash_map<std::string, int> thread_colors_; |
// XORed with TraceID to make it unlikely to collide with other processes. |
unsigned long long process_id_hash_; |