Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index 726670aae54a01cffe1890fd36a9dbadb988d66d..dd1c51164b2dd5ab39fa38d7e8bd1acf04f60323 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -42,6 +42,7 @@ |
#include "snapshot.h" |
#include "extensions/externalize-string-extension.h" |
#include "extensions/gc-extension.h" |
+#include "extensions/statistics-extension.h" |
namespace v8 { |
namespace internal { |
@@ -95,6 +96,7 @@ void Bootstrapper::Initialize(bool create_heap_objects) { |
extensions_cache_.Initialize(create_heap_objects); |
GCExtension::Register(); |
ExternalizeStringExtension::Register(); |
+ StatisticsExtension::Register(); |
} |
@@ -1997,6 +1999,9 @@ bool Genesis::InstallExtensions(Handle<Context> global_context, |
if (FLAG_expose_externalize_string) { |
InstallExtension("v8/externalize", &extension_states); |
} |
+ if (FLAG_track_gc_object_stats) { |
+ InstallExtension("v8/statistics", &extension_states); |
+ } |
if (extensions == NULL) return true; |
// Install required extensions |