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

Unified Diff: runtime/vm/thread_test.cc

Issue 2565253004: Added task kind field to thread JSON output. (Closed)
Patch Set: Created 4 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 | « runtime/vm/thread.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/thread_test.cc
diff --git a/runtime/vm/thread_test.cc b/runtime/vm/thread_test.cc
index e0fd8f9361997d5b0ad9299f12b09987f9124bce..b571c752eed986b71bd492fab30fc14463ef468a 100644
--- a/runtime/vm/thread_test.cc
+++ b/runtime/vm/thread_test.cc
@@ -343,11 +343,14 @@ TEST_CASE(ManySimpleTasksWithZones) {
}
// Check the thread exists and is the correct size.
- char* thread_info_buf = OS::SCreate(
- current_zone,
- "\"type\":\"_Thread\","
- "\"id\":\"threads\\/%" Pd "",
- OSThread::ThreadIdToIntPtr(thread->os_thread()->trace_id()));
+ char* thread_info_buf =
+ OS::SCreate(current_zone,
+ "\"type\":\"_Thread\","
+ "\"id\":\"threads\\/%" Pd
+ "\","
+ "\"kind\":\"%s\"",
+ OSThread::ThreadIdToIntPtr(thread->os_thread()->trace_id()),
+ Thread::TaskKindToCString(thread->task_kind()));
EXPECT_SUBSTRING(thread_info_buf, json);
}
« no previous file with comments | « runtime/vm/thread.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698