mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
compiledump: allow disabling of early graphs for large compiles
This commit is contained in:
parent
9eb349a343
commit
b13a90e5d2
@ -273,14 +273,18 @@ void dumpRoseGraph(const RoseBuild &build_base, const RoseEngine *t,
|
||||
const RoseBuildImpl &build = dynamic_cast<const RoseBuildImpl &>(build_base);
|
||||
|
||||
const Grey &grey = build.cc.grey;
|
||||
if (!grey.dumpFlags) {
|
||||
|
||||
/* "early" rose graphs should only be dumped if we are dumping intermediate
|
||||
* graphs. Early graphs can be identified by the lack of a RoseEngine. */
|
||||
u32 flag_test = t ? Grey::DUMP_IMPL : Grey::DUMP_INT_GRAPH;
|
||||
|
||||
if (!(grey.dumpFlags & flag_test)) {
|
||||
return;
|
||||
}
|
||||
|
||||
stringstream ss;
|
||||
ss << grey.dumpPath << filename;
|
||||
|
||||
|
||||
DEBUG_PRINTF("dumping graph to %s\n", ss.str().c_str());
|
||||
ofstream os(ss.str());
|
||||
|
||||
|
@ -51,7 +51,7 @@ namespace ue2 {
|
||||
|
||||
void dumpPreRoseGraph(const RoseInGraph &ig, const Grey &grey,
|
||||
const char *filename) {
|
||||
if (!grey.dumpFlags) {
|
||||
if (!(grey.dumpFlags & Grey::DUMP_INT_GRAPH)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user