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

Unified Diff: runtime/vm/thread_test.cc

Issue 2605933003: Revert "Added isolate + thread high watermark tracking to Observatory" (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_registry.cc ('k') | runtime/vm/zone.cc » ('j') | 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 9c2446882e279ff22451e6c8e0cd1c27a7cb7d44..44082bc53ad719373134a470d82f51631c361abd 100644
--- a/runtime/vm/thread_test.cc
+++ b/runtime/vm/thread_test.cc
@@ -320,21 +320,12 @@ TEST_CASE(ManySimpleTasksWithZones) {
isolate->PrintJSON(&stream, false);
const char* json = stream.ToCString();
- Thread* current_thread = Thread::Current();
- {
- StackZone stack_zone(current_thread);
- char* isolate_info_buf = OS::SCreate(current_thread->zone(),
- "\"isolateMemoryHighWatermark\":"
- "%" Pd "",
- isolate->GetIsolateHighWatermark());
- EXPECT_SUBSTRING(isolate_info_buf, json);
- }
-
// Confirm all expected entries are in the JSON output.
for (intptr_t i = 0; i < kTaskCount + 1; i++) {
Thread* thread = threads[i];
Zone* top_zone = thread->zone();
+ Thread* current_thread = Thread::Current();
StackZone stack_zone(current_thread);
Zone* current_zone = current_thread->zone();
@@ -357,11 +348,9 @@ TEST_CASE(ManySimpleTasksWithZones) {
"\"type\":\"_Thread\","
"\"id\":\"threads\\/%" Pd
"\","
- "\"kind\":\"%s\","
- "\"threadMemoryHighWatermark\":%" Pd "",
+ "\"kind\":\"%s\"",
OSThread::ThreadIdToIntPtr(thread->os_thread()->trace_id()),
- Thread::TaskKindToCString(thread->task_kind()),
- thread->GetThreadHighWatermark());
+ Thread::TaskKindToCString(thread->task_kind()));
EXPECT_SUBSTRING(thread_info_buf, json);
}
« no previous file with comments | « runtime/vm/thread_registry.cc ('k') | runtime/vm/zone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698