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