mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Merge pull request #2515 from johnmccutchan/observatory_auto_port
Auto select Observatory port on Android and iOS simulators
This commit is contained in:
commit
a8ea37b714
@ -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.
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user