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

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: Refactoring 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/IceMangling.h b/src/LinuxMallocProfiling.h
similarity index 51%
copy from src/IceMangling.h
copy to src/LinuxMallocProfiling.h
index 3c838a1c2a94aca1c5f538a182e249b453a8303d..dfedc9a664be381e193a27fe70c8af204b721bd9 100644
--- a/src/IceMangling.h
+++ b/src/LinuxMallocProfiling.h
@@ -1,4 +1,4 @@
-//===- subzero/src/IceMangling.h - Name mangling for crosstests -*- C++ -*-===//
+//===--- subzero/src/LinuxMallocProfiling.h - malloc/new tracing ---------===//
//
// The Subzero Code Generator
//
@@ -8,19 +8,16 @@
//===----------------------------------------------------------------------===//
///
/// \file
-/// \brief Declares utility functions for name mangling for cross tests.
+/// \brief malloc/new/...caller tracing.
///
//===----------------------------------------------------------------------===//
-#ifndef SUBZERO_SRC_ICEMANGLING_H
-#define SUBZERO_SRC_ICEMANGLING_H
-
-#include "IceDefs.h"
-
namespace Ice {
-IceString mangleName(const IceString &Name);
-
-} // end of namespace Ice
+class LinuxMallocProfiling {
+ public:
+ static void Start();
Jim Stichnoth 2016/03/12 00:12:58 name these start() and end()
sehr 2016/03/15 00:36:45 Done.
+ static void End();
+};
-#endif // SUBZERO_SRC_ICEMANGLING_H
+} // end namespace Ice
Jim Stichnoth 2016/03/12 00:12:58 end of namespace Ice
sehr 2016/03/15 00:36:46 Done.

Powered by Google App Engine
This is Rietveld 408576698