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

Side by Side Diff: runtime/vm/isolate.h

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
« no previous file with comments | « no previous file | runtime/vm/isolate.cc » ('j') | runtime/vm/isolate.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 #ifndef RUNTIME_VM_ISOLATE_H_ 5 #ifndef RUNTIME_VM_ISOLATE_H_
6 #define RUNTIME_VM_ISOLATE_H_ 6 #define RUNTIME_VM_ISOLATE_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "vm/atomic.h" 10 #include "vm/atomic.h"
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 return defer_finalization_count_--; 461 return defer_finalization_count_--;
462 } 462 }
463 463
464 bool AllowClassFinalization() { 464 bool AllowClassFinalization() {
465 ASSERT(defer_finalization_count_ >= 0); 465 ASSERT(defer_finalization_count_ >= 0);
466 return defer_finalization_count_ == 0; 466 return defer_finalization_count_ == 0;
467 } 467 }
468 468
469 #ifndef PRODUCT 469 #ifndef PRODUCT
470 void PrintJSON(JSONStream* stream, bool ref = true); 470 void PrintJSON(JSONStream* stream, bool ref = true);
471 void PrintThreadsInfoToJSONObject(JSONObject* obj);
siva 2016/12/07 22:12:52 Can these two methods PrintJSON and PrintThreadsIn
bkonyi 2016/12/08 18:04:14 ServiceEvent requires an Isolate* argument and has
472 static void PrintAllIsolatesMemoryInfoToJSONLocked(JSONStream* stream);
471 #endif 473 #endif
472 474
473 // Mutator thread is used to aggregate compiler stats. 475 // Mutator thread is used to aggregate compiler stats.
474 CompilerStats* aggregate_compiler_stats() { 476 CompilerStats* aggregate_compiler_stats() {
475 return mutator_thread()->compiler_stats(); 477 return mutator_thread()->compiler_stats();
476 } 478 }
477 479
478 VMTagCounters* vm_tag_counters() { return &vm_tag_counters_; } 480 VMTagCounters* vm_tag_counters() { return &vm_tag_counters_; }
479 481
480 bool IsReloading() const { return reload_context_ != NULL; } 482 bool IsReloading() const { return reload_context_ != NULL; }
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
988 intptr_t* spawn_count_; 990 intptr_t* spawn_count_;
989 991
990 Dart_IsolateFlags isolate_flags_; 992 Dart_IsolateFlags isolate_flags_;
991 bool paused_; 993 bool paused_;
992 bool errors_are_fatal_; 994 bool errors_are_fatal_;
993 }; 995 };
994 996
995 } // namespace dart 997 } // namespace dart
996 998
997 #endif // RUNTIME_VM_ISOLATE_H_ 999 #endif // RUNTIME_VM_ISOLATE_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/isolate.cc » ('j') | runtime/vm/isolate.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698