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

Unified Diff: tools/gn/trace.cc

Issue 864943002: Replaces instances of the deprecated TimeTicks::HighResNow() with TimeTicks::Now(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More changes based on review comments. Created 5 years, 11 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 | « skia/ext/benchmarking_canvas.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/trace.cc
diff --git a/tools/gn/trace.cc b/tools/gn/trace.cc
index 036ac53dc08905474c604123cf85e303702f615b..c81079311486164f8d81c661f5bd1c0ed7665e12 100644
--- a/tools/gn/trace.cc
+++ b/tools/gn/trace.cc
@@ -123,7 +123,7 @@ ScopedTrace::ScopedTrace(TraceItem::Type t, const std::string& name)
: item_(nullptr), done_(false) {
if (trace_log) {
item_ = new TraceItem(t, name, base::PlatformThread::CurrentId());
- item_->set_begin(base::TimeTicks::HighResNow());
+ item_->set_begin(base::TimeTicks::Now());
}
}
@@ -132,7 +132,7 @@ ScopedTrace::ScopedTrace(TraceItem::Type t, const Label& label)
if (trace_log) {
item_ = new TraceItem(t, label.GetUserVisibleName(false),
base::PlatformThread::CurrentId());
- item_->set_begin(base::TimeTicks::HighResNow());
+ item_->set_begin(base::TimeTicks::Now());
}
}
@@ -154,7 +154,7 @@ void ScopedTrace::Done() {
if (!done_) {
done_ = true;
if (trace_log) {
- item_->set_end(base::TimeTicks::HighResNow());
+ item_->set_end(base::TimeTicks::Now());
AddTrace(item_);
}
}
« no previous file with comments | « skia/ext/benchmarking_canvas.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698