Chromium Code Reviews| Index: src/IceCompileServer.cpp |
| diff --git a/src/IceCompileServer.cpp b/src/IceCompileServer.cpp |
| index 7b9f781245fce60773c1e46f60932b9356069dd7..22e940178ee7049d52365c0398968224933844f1 100644 |
| --- a/src/IceCompileServer.cpp |
| +++ b/src/IceCompileServer.cpp |
| @@ -18,6 +18,7 @@ |
| #include "IceClFlagsExtra.h" |
| #include "IceELFStreamer.h" |
| #include "IceGlobalContext.h" |
| +#include "LinuxMallocProfiling.h" |
| #ifdef __clang__ |
| #pragma clang diagnostic push |
| @@ -167,6 +168,8 @@ void CLCompileServer::run() { |
| if (ExtraFlags.getAlwaysExitSuccess()) |
| llvm::install_fatal_error_handler(reportFatalErrorThenExitSuccess, this); |
| + Ice::LinuxMallocProfiling MallocProfile(Flags.getNumTranslationThreads()); |
|
John
2016/03/15 15:19:06
you don't need MallocProfile for anything but RAII
sehr
2016/03/17 16:47:14
Done.
|
| + |
| std::error_code EC; |
| std::unique_ptr<Ostream> Ls = makeStream(ExtraFlags.getLogFilename(), EC); |
| if (EC) { |