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

Unified Diff: runtime/vm/heap.h

Issue 434763002: Add VMService GC events (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 4 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/bin/vmservice/server.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
===================================================================
--- runtime/vm/heap.h (revision 39000)
+++ runtime/vm/heap.h (working copy)
@@ -324,11 +324,22 @@
// GC on the heap is in progress.
bool gc_in_progress_;
+ friend class GCEvent;
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_;
+};
+
+
#if defined(DEBUG)
class NoGCScope : public StackResource {
public:
« no previous file with comments | « runtime/bin/vmservice/server.dart ('k') | runtime/vm/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698