Merge pull request #2515 from johnmccutchan/observatory_auto_port

Auto select Observatory port on Android and iOS simulators
This commit is contained in:
John McCutchan 2016-03-17 14:24:19 -07:00
commit a8ea37b714
3 changed files with 6 additions and 3 deletions

View File

@ -360,7 +360,7 @@ void InitDartVM() {
Vector<const char*> args;
args.append(kDartProfilingArgs, arraysize(kDartProfilingArgs));
if (!IsRunningPrecompiledCode()) {
// The version of the VM setup to run precompiled code does not recognize
// the mirrors or the background compilation flags. They are never enabled.

View File

@ -11,7 +11,9 @@ namespace blink {
struct SkySettings {
bool enable_observatory = false;
uint32_t observatory_port = 8181;
// Port on target will be auto selected by the OS. A message will be printed
// on the target with the port after it has been selected.
uint32_t observatory_port = 0;
bool start_paused = false;
bool enable_dart_checked_mode = false;

View File

@ -110,7 +110,8 @@ void Shell::InitStandalone(std::string icu_data_path) {
settings.observatory_port = port;
} else {
LOG(INFO)
<< "Observatory port specified was malformed. Will default to 8181";
<< "Observatory port specified was malformed. Will default to "
<< settings.observatory_port;
}
}
settings.start_paused = command_line.HasSwitch(switches::kStartPaused);