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

Unified Diff: runtime/vm/isolate.h

Issue 336683003: Light-weight stats counters for experiments. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 6 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
Index: runtime/vm/isolate.h
===================================================================
--- runtime/vm/isolate.h (revision 37279)
+++ runtime/vm/isolate.h (working copy)
@@ -10,6 +10,7 @@
#include "platform/thread.h"
#include "vm/base_isolate.h"
#include "vm/class_table.h"
+#include "vm/counters.h"
#include "vm/handles.h"
#include "vm/megamorphic_cache_table.h"
#include "vm/random.h"
@@ -542,6 +543,8 @@
static void VisitIsolates(IsolateVisitor* visitor);
+ Counters* counters() { return &counters_; }
+
private:
Isolate();
@@ -617,6 +620,8 @@
RawGrowableObjectArray* tag_table_;
RawUserTag* current_tag_;
+ Counters counters_;
+
// Isolate list next pointer.
Isolate* next_;

Powered by Google App Engine
This is Rietveld 408576698