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

Unified Diff: src/libplatform/tracing/trace-writer.cc

Issue 2200113003: [Tracing] V8 Tracing Controller - Fix async trace event bug (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Merge async test as part of TestJSONTraceWriter Created 4 years, 4 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 | « no previous file | test/cctest/libplatform/test-tracing.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/libplatform/tracing/trace-writer.cc
diff --git a/src/libplatform/tracing/trace-writer.cc b/src/libplatform/tracing/trace-writer.cc
index b04526f39abfa365ff3f736058aacd3219ee16b6..c4a75d122fb2f0bf6afb753087259143f0d46b9a 100644
--- a/src/libplatform/tracing/trace-writer.cc
+++ b/src/libplatform/tracing/trace-writer.cc
@@ -107,7 +107,8 @@ void JSONTraceWriter::AppendTraceEvent(TraceObject* trace_event) {
stream_ << ",\"scope\":\"" << trace_event->scope() << "\"";
}
// So as not to lose bits from a 64-bit integer, output as a hex string.
- stream_ << ",\"id\":\"0x" << std::hex << trace_event->id() << "\"";
+ stream_ << ",\"id\":\"0x" << std::hex << trace_event->id() << "\""
+ << std::dec;
}
stream_ << ",\"args\":{";
const char** arg_names = trace_event->arg_names();
« no previous file with comments | « no previous file | test/cctest/libplatform/test-tracing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698