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

Unified Diff: base/android/early_trace_event_binding.cc

Issue 2359503002: Let TRACE_EVENT_XXX_WITH_TIMESTAMP accept TimeTicks instead of int64_t (Closed)
Patch Set: Rebase Created 4 years, 3 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/trace_event/common/trace_event_common.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/android/early_trace_event_binding.cc
diff --git a/base/android/early_trace_event_binding.cc b/base/android/early_trace_event_binding.cc
index 19e5d8d62987fe6da9ddd2e1470a1e55ae144014..5f876eaf6c79401f27d75bd10c3bfe93c8183902 100644
--- a/base/android/early_trace_event_binding.cc
+++ b/base/android/early_trace_event_binding.cc
@@ -32,10 +32,12 @@ static void RecordEarlyEvent(JNIEnv* env,
INTERNAL_TRACE_EVENT_ADD_WITH_ID_TID_AND_TIMESTAMP(
TRACE_EVENT_PHASE_BEGIN, kEarlyJavaCategory, name.c_str(),
- trace_event_internal::kNoId, thread_id, begin_us, TRACE_EVENT_FLAG_COPY);
+ trace_event_internal::kNoId, thread_id,
+ TimeTicks::FromInternalValue(begin_us), TRACE_EVENT_FLAG_COPY);
INTERNAL_TRACE_EVENT_ADD_WITH_ID_TID_AND_TIMESTAMP(
TRACE_EVENT_PHASE_END, kEarlyJavaCategory, name.c_str(),
- trace_event_internal::kNoId, thread_id, end_us, TRACE_EVENT_FLAG_COPY);
+ trace_event_internal::kNoId, thread_id,
+ TimeTicks::FromInternalValue(end_us), TRACE_EVENT_FLAG_COPY);
}
bool RegisterEarlyTraceEvent(JNIEnv* env) {
« no previous file with comments | « no previous file | base/trace_event/common/trace_event_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698