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

Unified Diff: webrtc/base/event_tracer.cc

Issue 1522483002: Remove thread-id wraparounds in event tracing. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: %lu Created 5 years 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/event_tracer.cc
diff --git a/webrtc/base/event_tracer.cc b/webrtc/base/event_tracer.cc
index f16bd6f757f0c913830a347e9e74112b433eef11..4f3df82a598fa0416caa2415a93a5d887ba41ddd 100644
--- a/webrtc/base/event_tracer.cc
+++ b/webrtc/base/event_tracer.cc
@@ -119,9 +119,14 @@ class EventLogger final {
", \"ph\": \"%c\""
", \"ts\": %" PRIu64
", \"pid\": %d"
- ", \"tid\": %d}\n",
+#if defined(WEBRTC_WIN)
+ ", \"tid\": %lu"
+#else
+ ", \"tid\": %d"
+#endif // defined(WEBRTC_WIN)
+ "}\n",
has_logged_event ? "," : " ", e.name, e.category_enabled,
- e.phase, e.timestamp, e.pid, static_cast<int>(e.tid));
+ e.phase, e.timestamp, e.pid, e.tid);
has_logged_event = true;
}
if (shutting_down)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698