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

Unified Diff: runtime/bin/main.cc

Issue 11099061: Remove support for generating visualizer format file for the flowgraph. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 months 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 | « no previous file | runtime/include/dart_api.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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];
« no previous file with comments | « no previous file | runtime/include/dart_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698