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

Unified Diff: base/debug/trace_event_impl.h

Issue 11411118: Add tracing support to NaCl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove content from tracing DEPS Created 8 years 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') | content/components/tracing/DEPS » ('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 33e782c04a57455562630ec196236617c846c4d8..8ef4531e1574bd2c44a73e601e5abfb945fcbd1a 100644
--- a/base/debug/trace_event_impl.h
+++ b/base/debug/trace_event_impl.h
@@ -310,6 +310,10 @@ class BASE_EXPORT TraceLog {
void SetProcessID(int process_id);
+ // Allow setting an offset between the current TimeTicks time and the time
+ // that should be reported.
+ void SetTimeOffset(TimeDelta offset);
+
private:
// This allows constructor and destructor to be private and usable only
// by the Singleton class.
@@ -385,6 +389,8 @@ class BASE_EXPORT TraceLog {
int process_id_;
+ TimeDelta time_offset_;
+
// Allow tests to wake up when certain events occur.
const unsigned char* watch_category_;
std::string watch_event_name_;
« no previous file with comments | « no previous file | base/debug/trace_event_impl.cc » ('j') | content/components/tracing/DEPS » ('J')

Powered by Google App Engine
This is Rietveld 408576698