summaryrefslogtreecommitdiffstats
path: root/src/config.l
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.l')
-rw-r--r--src/config.l18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/config.l b/src/config.l
index 7823412..b569d5d 100644
--- a/src/config.l
+++ b/src/config.l
@@ -1217,6 +1217,12 @@ void Config::check()
}
PUTENV(buf);
}
+
+ int &depth = Config_getInt("MAX_DOT_GRAPH_DEPTH");
+ if (depth==0)
+ {
+ depth=1000;
+ }
if (Config_getBool("OPTIMIZE_OUTPUT_JAVA") && Config_getBool("INLINE_INFO"))
{
@@ -2518,6 +2524,18 @@ void Config::create()
"large images. \n",
100,30000,1024
);
+ ci = addInt(
+ "MAX_DOT_GRAPH_DEPTH",
+ "The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the \n"
+ "graphs generated by dot. A depth value of 3 means that only nodes reachable \n"
+ "from the root by following a path via at most 3 edges will be shown. Nodes that \n"
+ "lay further from the root node will be omitted. Note that setting this option to \n"
+ "1 or 2 may greatly reduce the computation time needed for large code bases. Also \n"
+ "note that a graph may be further truncated if the graph's image dimensions are \n"
+ "not sufficient to fit the graph (see MAX_DOT_GRAPH_WIDTH and MAX_DOT_GRAPH_HEIGHT). \n"
+ "If 0 is used fot the depth value (the default), the graph is not depth constraint. \n",
+ 0,1000,0
+ );
ci->addDependency("HAVE_DOT");
cb = addBool(
"GENERATE_LEGEND",