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

Unified Diff: src/LinuxMallocProfiling.h

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/LinuxMallocProfiling.h
diff --git a/src/LinuxMallocProfiling.h b/src/LinuxMallocProfiling.h
new file mode 100644
index 0000000000000000000000000000000000000000..d312d96297d2199984b8c6e36538ee7d3c9c7602
--- /dev/null
+++ b/src/LinuxMallocProfiling.h
@@ -0,0 +1,38 @@
+//===--- subzero/src/LinuxMallocProfiling.h - malloc/new tracing ---------===//
+//
+// The Subzero Code Generator
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+///
+/// \file
+/// \brief malloc/new/...caller tracing.
+///
+//===----------------------------------------------------------------------===//
+
+#ifndef SUBZERO_SRC_LINUXMALLOCPROFILING_H
+#define SUBZERO_SRC_LINUXMALLOCPROFILING_H
+
+#include "IceDefs.h"
+#include "IceTypes.h"
Jim Stichnoth 2016/03/17 20:09:06 Can this be removed? I don't see anything in this
sehr 2016/03/17 20:58:21 Done.
+
+namespace Ice {
+
+class LinuxMallocProfiling {
+private:
+ LinuxMallocProfiling(const LinuxMallocProfiling &) = delete;
+ LinuxMallocProfiling &operator=(const LinuxMallocProfiling &) = delete;
+
+#ifdef ALLOW_LINUX_MALLOC_PROFILE
+ Ostream *Ls;
+#endif // ALLOW_LINUX_MALLOC_PROFILE
+
+public:
+ LinuxMallocProfiling(size_t NumThreads, Ostream *Ls);
+ ~LinuxMallocProfiling();
+};
+
+} // end of namespace Ice
+#endif // SUBZERO_SRC_LINUXMALLOCPROFILING_H

Powered by Google App Engine
This is Rietveld 408576698