Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(754)

Unified Diff: runtime/bin/run_vm_tests.cc

Issue 11572032: Clean up CodeObservers (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add clean up TODO in isolate.cc Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/main.cc ('k') | runtime/vm/code_observers.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/run_vm_tests.cc
diff --git a/runtime/bin/run_vm_tests.cc b/runtime/bin/run_vm_tests.cc
index c9173a88ea61e77b0a502db65ef8c0aeab2e04f6..95ecf87f7843504283d60b9e80a3fdc2220b7b6f 100644
--- a/runtime/bin/run_vm_tests.cc
+++ b/runtime/bin/run_vm_tests.cc
@@ -119,21 +119,10 @@ static int Main(int argc, const char** argv) {
} else {
// Last argument is the test name, the rest are vm flags.
run_filter = argv[argc - 1];
- const char* pprof_option = "--generate_pprof_symbols=";
- int length = strlen(pprof_option);
- if (strncmp(pprof_option, argv[1], length) == 0) {
- pprof_filename = (argv[1] + length);
- Dart_InitPprofSupport();
- // Remove the first two values (executable, pprof flag) from the
- // arguments and exclude the last argument which is the test name.
- dart_argc = argc - 3;
- dart_argv = &argv[2];
- } else {
- // Remove the first value (executable) from the arguments and
- // exclude the last argument which is the test name.
- dart_argc = argc - 2;
- dart_argv = &argv[1];
- }
+ // Remove the first value (executable) from the arguments and
+ // exclude the last argument which is the test name.
+ dart_argc = argc - 2;
+ dart_argv = &argv[1];
}
bool set_vm_flags_success = Flags::ProcessCommandLineFlags(dart_argc,
dart_argv);
« no previous file with comments | « runtime/bin/main.cc ('k') | runtime/vm/code_observers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698