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

Unified Diff: base/debug/trace_event_impl.h

Issue 14474006: Add a command line flag for dumping trace events to VLOG (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: "Now beautiful" Created 7 years, 8 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
« no previous file with comments | « no previous file | base/debug/trace_event_impl.cc » ('j') | cc/base/switches.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/debug/trace_event_impl.h
diff --git a/base/debug/trace_event_impl.h b/base/debug/trace_event_impl.h
index c0eead0b577a753a2fe3d02e2e4f1712d0691e7b..32cac0e190bdc78cb57f2d31f7baeb01b6aa71d9 100644
--- a/base/debug/trace_event_impl.h
+++ b/base/debug/trace_event_impl.h
@@ -278,7 +278,10 @@ class BASE_EXPORT TraceLog {
RECORD_CONTINUOUSLY = 1 << 1,
// Enable the sampling profiler.
- ENABLE_SAMPLING = 1 << 2
+ ENABLE_SAMPLING = 1 << 2,
+
+ // Echo to stderr.
+ ECHO_TO_STDERR = 1 << 3
};
static TraceLog* GetInstance();
@@ -515,6 +518,8 @@ class BASE_EXPORT TraceLog {
ObserverList<EnabledStateChangedObserver> enabled_state_observer_list_;
base::hash_map<int, std::string> thread_names_;
+ base::hash_map<int, std::vector<TimeTicks> > thread_event_start_times_;
danakj 2013/04/24 20:10:12 I think you're looking for std::stack for this ins
Ian Vollick 2013/04/24 22:57:11 Done.
+ 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_;
« no previous file with comments | « no previous file | base/debug/trace_event_impl.cc » ('j') | cc/base/switches.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698