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

Side by Side Diff: runtime/vm/isolate_test.cc

Issue 2554983002: Created methods to surface zone memory information for each isolate and thread in JSON. (Closed)
Patch Set: Created methods to surface zone memory information for each isolate and thread in JSON. 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "include/dart_api.h" 5 #include "include/dart_api.h"
6 #include "platform/assert.h" 6 #include "platform/assert.h"
7 #include "vm/globals.h" 7 #include "vm/globals.h"
8 #include "vm/isolate.h" 8 #include "vm/isolate.h"
9 #include "vm/lockers.h" 9 #include "vm/lockers.h"
10 #include "vm/thread_barrier.h" 10 #include "vm/thread_barrier.h"
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 } 238 }
239 239
240 // Restore, then clear interrupts. The world is as it was. 240 // Restore, then clear interrupts. The world is as it was.
241 interrupt_bits = thread->GetAndClearInterrupts(); 241 interrupt_bits = thread->GetAndClearInterrupts();
242 EXPECT_EQ(kMessageInterrupt, interrupt_bits); 242 EXPECT_EQ(kMessageInterrupt, interrupt_bits);
243 EXPECT_EQ(IsolateTestHelper::GetStackLimit(thread), 243 EXPECT_EQ(IsolateTestHelper::GetStackLimit(thread),
244 IsolateTestHelper::GetSavedStackLimit(thread)); 244 IsolateTestHelper::GetSavedStackLimit(thread));
245 EXPECT_EQ(kZero, IsolateTestHelper::GetDeferredInterruptsMask(thread)); 245 EXPECT_EQ(kZero, IsolateTestHelper::GetDeferredInterruptsMask(thread));
246 EXPECT_EQ(kZero, IsolateTestHelper::GetDeferredInterrupts(thread)); 246 EXPECT_EQ(kZero, IsolateTestHelper::GetDeferredInterrupts(thread));
247 } 247 }
248
zra 2016/12/08 18:54:13 Did clang-format remove this? I think we usually k
bkonyi 2016/12/08 20:58:32 I must have accidentally removed it when I deleted
249 } // namespace dart 248 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/json_stream.h » ('j') | runtime/vm/json_stream.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698