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

Unified Diff: runtime/vm/heap.h

Issue 1093043004: Do not JSON encode the 'result' of a service rpc. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: code review Created 5 years, 8 months 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/observatory/tests/service/malformed_test.dart ('k') | runtime/vm/heap.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/heap.h
diff --git a/runtime/vm/heap.h b/runtime/vm/heap.h
index cd28cd6458b5d133ee64af1a78529325273ce71c..928e7c5c8cf76e4b23ea64e564d43d02c96351b6 100644
--- a/runtime/vm/heap.h
+++ b/runtime/vm/heap.h
@@ -21,6 +21,7 @@ namespace dart {
class Isolate;
class ObjectPointerVisitor;
class ObjectSet;
+class ServiceEvent;
class VirtualMemory;
DECLARE_FLAG(bool, verbose_gc);
@@ -312,22 +313,12 @@ class Heap {
int pretenure_policy_;
- friend class GCEvent;
+ friend class ServiceEvent;
friend class GCTestHelper;
DISALLOW_COPY_AND_ASSIGN(Heap);
};
-class GCEvent {
- public:
- explicit GCEvent(const Heap::GCStats& stats)
- : stats_(stats) {}
- void PrintJSON(JSONStream* js) const;
- private:
- const Heap::GCStats& stats_;
-};
-
-
// Within a NoSafepointScope, the thread must not reach any safepoint. Used
// around code that manipulates raw object pointers directly without handles.
#if defined(DEBUG)
« no previous file with comments | « runtime/observatory/tests/service/malformed_test.dart ('k') | runtime/vm/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698