| Index: runtime/bin/main.cc
|
| ===================================================================
|
| --- runtime/bin/main.cc (revision 13460)
|
| +++ runtime/bin/main.cc (working copy)
|
| @@ -40,11 +40,6 @@
|
| static bool use_script_snapshot = false;
|
| static File* snapshot_file = NULL;
|
|
|
| -
|
| -// Global state that stores a file name for flow graph debugging output.
|
| -// NULL if no output is generated.
|
| -static File* flow_graph_file = NULL;
|
| -
|
| // Global state that indicates whether there is a debug breakpoint.
|
| // This pointer points into an argv buffer and does not need to be
|
| // free'd.
|
| @@ -183,14 +178,6 @@
|
| }
|
|
|
|
|
| -static bool ProcessFlowGraphOption(const char* flowgraph_option) {
|
| - ASSERT(flowgraph_option != NULL);
|
| - flow_graph_file = File::Open("flowgraph.cfg", File::kWriteTruncate);
|
| - ASSERT(flow_graph_file != NULL);
|
| - return true;
|
| -}
|
| -
|
| -
|
| static struct {
|
| const char* option_name;
|
| bool (*process)(const char* option);
|
| @@ -206,7 +193,6 @@
|
| { "--break_at=", ProcessBreakpointOption },
|
| { "--compile_all", ProcessCompileAllOption },
|
| { "--debug", ProcessDebugOption },
|
| - { "--generate_flow_graph", ProcessFlowGraphOption },
|
| { "--generate_perf_events_symbols", ProcessPerfEventsOption },
|
| { "--generate_pprof_symbols=", ProcessPprofOption },
|
| { "--use_script_snapshot=", ProcessScriptSnapshotOption },
|
| @@ -235,12 +221,6 @@
|
| }
|
|
|
|
|
| -static void WriteToFlowGraphFile(const char* buffer, int64_t num_bytes) {
|
| - ASSERT(flow_graph_file != NULL);
|
| - flow_graph_file->WriteFully(buffer, num_bytes);
|
| -}
|
| -
|
| -
|
| // Parse out the command line arguments. Returns -1 if the arguments
|
| // are incorrect, 0 otherwise.
|
| static int ParseArguments(int argc,
|
| @@ -287,10 +267,6 @@
|
| Dart_InitPprofSupport();
|
| }
|
|
|
| - if (flow_graph_file != NULL) {
|
| - Dart_InitFlowGraphPrinting(&WriteToFlowGraphFile);
|
| - }
|
| -
|
| // Get the script name.
|
| if (i < argc) {
|
| *script_name = argv[i];
|
|
|