Chromium Code Reviews| 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.
|