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

Unified Diff: runtime/vm/service.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/vm/heap.cc ('k') | runtime/vm/service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/service.h
===================================================================
--- runtime/vm/service.h (revision 39000)
+++ runtime/vm/service.h (working copy)
@@ -12,6 +12,7 @@
namespace dart {
class DebuggerEvent;
+class GCEvent;
class EmbedderServiceHandler;
class Instance;
class Isolate;
@@ -42,8 +43,13 @@
static bool NeedsDebuggerEvents() {
return IsRunning() && ((event_mask_ & kEventFamilyDebugMask) != 0);
}
+ // Is the service interested in garbage collection events?
+ static bool NeedsGCEvents() {
+ return IsRunning() && ((event_mask_ & kEventFamilyGCMask) != 0);
+ }
static void HandleDebuggerEvent(DebuggerEvent* event);
+ static void HandleGCEvent(GCEvent* event);
static void RegisterIsolateEmbedderCallback(
const char* name,
@@ -62,7 +68,9 @@
private:
// These must be kept in sync with service/constants.dart
static const int kEventFamilyDebug = 0;
+ static const int kEventFamilyGC = 1;
static const uint32_t kEventFamilyDebugMask = (1 << kEventFamilyDebug);
+ static const uint32_t kEventFamilyGCMask = (1 << kEventFamilyGC);
static void EmbedderHandleMessage(EmbedderServiceHandler* handler,
JSONStream* js);
« no previous file with comments | « runtime/vm/heap.cc ('k') | runtime/vm/service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698