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

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: Code review fixes. 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..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) {
« 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