Remove thread-id wraparounds in event tracing.

Prints tid as a DWORD on Windows and an int on other systems.

BUG=
R=thakis@chromium.org, tommi@webrtc.org

Review URL: https://codereview.webrtc.org/1522483002 .

Cr-Commit-Position: refs/heads/master@{#10992}
This commit is contained in:
Peter Boström 2015-12-11 20:29:35 +01:00
parent 822bdf9784
commit 43e4e23eeb

View File

@ -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)