Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Unified Diff: src/IceCompileServer.cpp

Issue 1781213002: Add malloc/new profiling on linux (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: More code reviews Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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()) {
« no previous file with comments | « Makefile.standalone ('k') | src/LinuxMallocProfiling.h » ('j') | src/LinuxMallocProfiling.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698