Index: webkit/tools/test_shell/test_shell_main.cc |
diff --git a/webkit/tools/test_shell/test_shell_main.cc b/webkit/tools/test_shell/test_shell_main.cc |
index b069b2f018b6469fd9bce681422448efb6efe334..ea2d6259463f04e9f6b6d9624686dc374b73f521 100644 |
--- a/webkit/tools/test_shell/test_shell_main.cc |
+++ b/webkit/tools/test_shell/test_shell_main.cc |
@@ -29,6 +29,7 @@ |
#include "webkit/glue/webkit_glue.h" |
#include "webkit/glue/window_open_disposition.h" |
#include "webkit/extensions/v8/gc_extension.h" |
+#include "webkit/extensions/v8/heap_profiler_extension.h" |
#include "webkit/extensions/v8/playback_extension.h" |
#include "webkit/extensions/v8/profiler_extension.h" |
#include "webkit/tools/test_shell/simple_resource_loader_bridge.h" |
@@ -225,6 +226,11 @@ int main(int argc, char* argv[]) { |
extensions_v8::ProfilerExtension::Get()); |
} |
+ if (parsed_command_line.HasSwitch(test_shell::kHeapProfiler)) { |
+ WebScriptController::registerExtension( |
+ extensions_v8::HeapProfilerExtension::Get()); |
+ } |
+ |
// Load and initialize the stats table. Attempt to construct a somewhat |
// unique name to isolate separate instances from each other. |
StatsTable *table = new StatsTable( |