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

Unified Diff: runtime/vm/json_stream.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/json_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/json_stream.h
diff --git a/runtime/vm/json_stream.h b/runtime/vm/json_stream.h
index bdf1b3a58c70c480a15fde0498afa578ad4b89b9..e49b8468609aeff996b4413223b812e71a78b50d 100644
--- a/runtime/vm/json_stream.h
+++ b/runtime/vm/json_stream.h
@@ -30,6 +30,8 @@ class ServiceEvent;
class String;
class TimelineEvent;
class TimelineEventBlock;
+class Thread;
+class ThreadRegistry;
class Zone;
@@ -181,6 +183,9 @@ class JSONStream : ValueObject {
void PrintValue(Metric* metric);
void PrintValue(MessageQueue* queue);
void PrintValue(Isolate* isolate, bool ref = true);
+ void PrintValue(ThreadRegistry* reg);
+ void PrintValue(Thread* thread);
+ void PrintValue(Zone* zone);
bool PrintValueStr(const String& s, intptr_t offset, intptr_t count);
void PrintValue(const TimelineEvent* timeline_event);
void PrintValue(const TimelineEventBlock* timeline_event_block);
@@ -212,6 +217,9 @@ class JSONStream : ValueObject {
void PrintProperty(const char* name, Metric* metric);
void PrintProperty(const char* name, MessageQueue* queue);
void PrintProperty(const char* name, Isolate* isolate);
+ void PrintProperty(const char* name, ThreadRegistry* reg);
+ void PrintProperty(const char* name, Thread* thread);
+ void PrintProperty(const char* name, Zone* zone);
void PrintProperty(const char* name, const TimelineEvent* timeline_event);
void PrintProperty(const char* name,
const TimelineEventBlock* timeline_event_block);
@@ -331,6 +339,15 @@ class JSONObject : public ValueObject {
void AddProperty(const char* name, Isolate* isolate) const {
stream_->PrintProperty(name, isolate);
}
+ void AddProperty(const char* name, ThreadRegistry* reg) const {
+ stream_->PrintProperty(name, reg);
+ }
+ void AddProperty(const char* name, Thread* thread) const {
+ stream_->PrintProperty(name, thread);
+ }
+ void AddProperty(const char* name, Zone* zone) const {
+ stream_->PrintProperty(name, zone);
+ }
void AddProperty(const char* name,
const TimelineEvent* timeline_event) const {
stream_->PrintProperty(name, timeline_event);
@@ -386,6 +403,9 @@ class JSONArray : public ValueObject {
void AddValue(Isolate* isolate, bool ref = true) const {
stream_->PrintValue(isolate, ref);
}
+ void AddValue(ThreadRegistry* reg) const { stream_->PrintValue(reg); }
+ void AddValue(Thread* thread) const { stream_->PrintValue(thread); }
+ void AddValue(Zone* zone) const { stream_->PrintValue(zone); }
void AddValue(Breakpoint* bpt) const { stream_->PrintValue(bpt); }
void AddValue(TokenPosition tp) const { stream_->PrintValue(tp); }
void AddValue(const ServiceEvent* event) const { stream_->PrintValue(event); }
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/json_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698