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

Unified Diff: base/debug/trace_event_impl.cc

Issue 10257020: Add interface to system trace clock. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: consolidate high res clock unit test code Created 8 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/time.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/debug/trace_event_impl.cc
diff --git a/base/debug/trace_event_impl.cc b/base/debug/trace_event_impl.cc
index bd997cf39e5d6bb0ffd0d63cd95cf6effd0c8320..9cf33417e8e1654e47b50e5a390ee94ef637bca0 100644
--- a/base/debug/trace_event_impl.cc
+++ b/base/debug/trace_event_impl.cc
@@ -585,7 +585,7 @@ int TraceLog::AddTraceEvent(char phase,
long long threshold,
unsigned char flags) {
DCHECK(name);
- TimeTicks now = TimeTicks::HighResNow();
+ TimeTicks now = TimeTicks::NowFromSystemTraceTime();
BufferFullCallback buffer_full_callback_copy;
int ret_begin_id = -1;
{
@@ -710,7 +710,7 @@ void TraceLog::AddClockSyncMetadataEvents() {
// debugfs that takes the written data and pushes it onto the trace
// buffer. So, to establish clock sync, we write our monotonic clock into that
// trace buffer.
- TimeTicks now = TimeTicks::HighResNow();
+ TimeTicks now = TimeTicks::NowFromSystemTraceTime();
double now_in_seconds = now.ToInternalValue() / 1000000.0;
std::string marker =
« no previous file with comments | « no previous file | base/time.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698