Index: src/IceCompileServer.cpp |
diff --git a/src/IceCompileServer.cpp b/src/IceCompileServer.cpp |
index 7b9f781245fce60773c1e46f60932b9356069dd7..992c790e2400100ce239570cc6577837109685d4 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 |
@@ -173,6 +174,8 @@ void CLCompileServer::run() { |
llvm::report_fatal_error("Unable to open log file"); |
} |
Ls->SetUnbuffered(); |
+ Ice::LinuxMallocProfiling _(Flags.getNumTranslationThreads(), Ls.get()); |
+ |
std::unique_ptr<Ostream> Os; |
std::unique_ptr<ELFStreamer> ELFStr; |
switch (Flags.getOutFileType()) { |