Chromium Code Reviews| Index: src/compiler/pipeline.cc |
| diff --git a/src/compiler/pipeline.cc b/src/compiler/pipeline.cc |
| index 9889b6a030263faa6f63b393f5fed994319ad269..c42d8636743fce6b6643d6c3610162f9d380cb4d 100644 |
| --- a/src/compiler/pipeline.cc |
| +++ b/src/compiler/pipeline.cc |
| @@ -95,18 +95,19 @@ void Pipeline::VerifyAndPrintGraph(Graph* graph, const char* phase) { |
| SmartArrayPointer<char> functionname = |
| info_->shared_info()->DebugName()->ToCString(); |
| if (strlen(functionname.get()) > 0) { |
| - SNPrintF(filename, "turbo-%s-%s.dot", functionname.get(), phase); |
| + SNPrintF(filename, "turbo-%s-%s.json", functionname.get(), phase); |
| } else { |
| - SNPrintF(filename, "turbo-%p-%s.dot", static_cast<void*>(info_), phase); |
| + SNPrintF(filename, "turbo-%p-%s.json", static_cast<void*>(info_), |
| + phase); |
| } |
| } else { |
| - SNPrintF(filename, "turbo-none-%s.dot", phase); |
| + SNPrintF(filename, "turbo-none-%s.json", phase); |
| } |
| std::replace(filename.start(), filename.start() + filename.length(), ' ', |
| '_'); |
| FILE* file = base::OS::FOpen(filename.start(), "w+"); |
| OFStream of(file); |
| - of << AsDOT(*graph); |
| + of << AsJSON(*graph); |
|
Michael Starzinger
2014/09/25 11:02:50
This seems to disable dumping of ".dot" files, I t
|
| fclose(file); |
| OFStream os(stdout); |