OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #include <stdio.h> | 5 #include <stdio.h> |
6 #include <stdlib.h> | 6 #include <stdlib.h> |
7 #include <string.h> | 7 #include <string.h> |
8 | 8 |
9 #include "include/dart_api.h" | 9 #include "include/dart_api.h" |
10 #include "include/dart_tools_api.h" | 10 #include "include/dart_tools_api.h" |
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
449 DEFAULT_VM_SERVICE_SERVER_PORT, DEFAULT_VM_SERVICE_SERVER_IP)) { | 449 DEFAULT_VM_SERVICE_SERVER_PORT, DEFAULT_VM_SERVICE_SERVER_IP)) { |
450 Log::PrintErr( | 450 Log::PrintErr( |
451 "unrecognized --observe option syntax. " | 451 "unrecognized --observe option syntax. " |
452 "Use --observe[=<port number>[/<bind address>]]\n"); | 452 "Use --observe[=<port number>[/<bind address>]]\n"); |
453 return false; | 453 return false; |
454 } | 454 } |
455 | 455 |
456 // These options should also be documented in the help message. | 456 // These options should also be documented in the help message. |
457 vm_options->AddArgument("--pause-isolates-on-exit"); | 457 vm_options->AddArgument("--pause-isolates-on-exit"); |
458 vm_options->AddArgument("--pause-isolates-on-unhandled-exceptions"); | 458 vm_options->AddArgument("--pause-isolates-on-unhandled-exceptions"); |
| 459 vm_options->AddArgument("--profiler"); |
459 vm_options->AddArgument("--warn-on-pause-with-no-debugger"); | 460 vm_options->AddArgument("--warn-on-pause-with-no-debugger"); |
460 return true; | 461 return true; |
461 } | 462 } |
462 | 463 |
463 static bool ProcessTraceLoadingOption(const char* arg, | 464 static bool ProcessTraceLoadingOption(const char* arg, |
464 CommandLineOptions* vm_options) { | 465 CommandLineOptions* vm_options) { |
465 if (*arg != '\0') { | 466 if (*arg != '\0') { |
466 return false; | 467 return false; |
467 } | 468 } |
468 trace_loading = true; | 469 trace_loading = true; |
(...skipping 1435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1904 Platform::Exit(Process::GlobalExitCode()); | 1905 Platform::Exit(Process::GlobalExitCode()); |
1905 } | 1906 } |
1906 | 1907 |
1907 } // namespace bin | 1908 } // namespace bin |
1908 } // namespace dart | 1909 } // namespace dart |
1909 | 1910 |
1910 int main(int argc, char** argv) { | 1911 int main(int argc, char** argv) { |
1911 dart::bin::main(argc, argv); | 1912 dart::bin::main(argc, argv); |
1912 UNREACHABLE(); | 1913 UNREACHABLE(); |
1913 } | 1914 } |
OLD | NEW |