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

Unified Diff: content/browser/tracing/tracing_controller_impl.cc

Issue 1427063002: Tracing: Add metadata indicating whether we have a high-resolution clock available (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « base/trace_event/trace_event.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/tracing/tracing_controller_impl.cc
diff --git a/content/browser/tracing/tracing_controller_impl.cc b/content/browser/tracing/tracing_controller_impl.cc
index 4b9f4556d6fc07acecbe48499eedc281cf17c853..83d6c91ab368ffeb9cc133c9a18143ee4dc30f41 100644
--- a/content/browser/tracing/tracing_controller_impl.cc
+++ b/content/browser/tracing/tracing_controller_impl.cc
@@ -167,6 +167,9 @@ void TracingControllerImpl::OnEnableRecordingDone(
const EnableRecordingDoneCallback& callback) {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
+ TRACE_EVENT_API_ADD_METADATA_EVENT("IsTimeTicksHighResolution", "value",
+ base::TimeTicks::IsHighResolution());
+
// Notify all child processes.
for (TraceMessageFilterSet::iterator it = trace_message_filters_.begin();
it != trace_message_filters_.end(); ++it) {
« no previous file with comments | « base/trace_event/trace_event.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698