Created
June 10, 2015 17:16
-
-
Save eseidelGoogle/7c1185d642acf8c14cad to your computer and use it in GitHub Desktop.
patch to add --verbose_gc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commit 386f1f30346674a8b965bfdb17d85957ef4de2d7 | |
Author: Eric Seidel <eseidel@chromium.org> | |
Date: Wed Jun 10 09:21:18 2015 -0700 | |
gc | |
diff --git a/sky/engine/core/script/dart_controller.cc b/sky/engine/core/script/dart_controller.cc | |
index 62665ab..3dc083c 100644 | |
--- a/sky/engine/core/script/dart_controller.cc | |
+++ b/sky/engine/core/script/dart_controller.cc | |
@@ -365,6 +365,10 @@ void DartController::ClearForClose() { | |
dom_dart_state_.clear(); | |
} | |
+static const char* kFooArgs[] = { | |
+ "--verbose_gc", | |
+}; | |
+ | |
void DartController::InitVM() { | |
int argc = 0; | |
const char** argv = nullptr; | |
@@ -374,6 +378,9 @@ void DartController::InitVM() { | |
argv = kCheckedModeArgs; | |
#endif | |
+ argc = arraysize(kFooArgs); | |
+ argv = kFooArgs; | |
+ | |
dart::bin::BootstrapDartIo(); | |
CHECK(Dart_SetVMFlags(argc, argv)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment