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

Unified Diff: base/trace_event/trace_event_impl.h

Issue 1424703003: Kills TraceTicks, which was functionally the same as TimeTicks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Code review Created 5 years, 2 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
Index: base/trace_event/trace_event_impl.h
diff --git a/base/trace_event/trace_event_impl.h b/base/trace_event/trace_event_impl.h
index 904f301110c83fa16dab3940c573fd710821a2e6..9d6622d8da7215cc50ebee0fb4915f31ee5951b1 100644
--- a/base/trace_event/trace_event_impl.h
+++ b/base/trace_event/trace_event_impl.h
@@ -95,7 +95,7 @@ class BASE_EXPORT TraceEvent {
void Initialize(
int thread_id,
- TraceTicks timestamp,
+ TimeTicks timestamp,
ThreadTicks thread_timestamp,
char phase,
const unsigned char* category_group_enabled,
@@ -112,7 +112,7 @@ class BASE_EXPORT TraceEvent {
void Reset();
- void UpdateDuration(const TraceTicks& now, const ThreadTicks& thread_now);
+ void UpdateDuration(const TimeTicks& now, const ThreadTicks& thread_now);
void EstimateTraceMemoryOverhead(TraceEventMemoryOverhead* overhead);
@@ -126,7 +126,7 @@ class BASE_EXPORT TraceEvent {
TraceValue value,
std::string* out);
- TraceTicks timestamp() const { return timestamp_; }
+ TimeTicks timestamp() const { return timestamp_; }
ThreadTicks thread_timestamp() const { return thread_timestamp_; }
char phase() const { return phase_; }
int thread_id() const { return thread_id_; }
@@ -154,7 +154,7 @@ class BASE_EXPORT TraceEvent {
private:
// Note: these are ordered by size (largest first) for optimal packing.
- TraceTicks timestamp_;
+ TimeTicks timestamp_;
ThreadTicks thread_timestamp_;
TimeDelta duration_;
TimeDelta thread_duration_;

Powered by Google App Engine
This is Rietveld 408576698