| Index: base/debug/trace_event_impl.cc
|
| diff --git a/base/debug/trace_event_impl.cc b/base/debug/trace_event_impl.cc
|
| index 823acbe17726396b25168599476f1c85f5760e88..66872184a1817d62d27fdebf51071f26be4e79fc 100644
|
| --- a/base/debug/trace_event_impl.cc
|
| +++ b/base/debug/trace_event_impl.cc
|
| @@ -627,7 +627,7 @@ int TraceLog::AddTraceEvent(char phase,
|
| num_args, arg_names, arg_types, arg_values);
|
| #endif
|
|
|
| - TimeTicks now = TimeTicks::NowFromSystemTraceTime();
|
| + TimeTicks now = TimeTicks::NowFromSystemTraceTime() - time_offset_;
|
| NotificationHelper notifier(this);
|
| int ret_begin_id = -1;
|
| {
|
| @@ -804,5 +804,9 @@ void TraceLog::SetProcessID(int process_id) {
|
| process_id_hash_ = (offset_basis ^ pid) * fnv_prime;
|
| }
|
|
|
| +void TraceLog::SetTimeOffset(TimeDelta offset) {
|
| + time_offset_ = offset;
|
| +}
|
| +
|
| } // namespace debug
|
| } // namespace base
|
|
|