| 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:
|
|
|