Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 //===--- subzero/src/LinuxMallocProfiling.h - malloc/new tracing ---------===// | |
| 2 // | |
| 3 // The Subzero Code Generator | |
| 4 // | |
| 5 // This file is distributed under the University of Illinois Open Source | |
| 6 // License. See LICENSE.TXT for details. | |
| 7 // | |
| 8 //===----------------------------------------------------------------------===// | |
| 9 /// | |
| 10 /// \file | |
| 11 /// \brief malloc/new/...caller tracing. | |
| 12 /// | |
| 13 //===----------------------------------------------------------------------===// | |
| 14 | |
| 15 #ifndef SUBZERO_SRC_LINUXMALLOCPROFILING_H | |
| 16 #define SUBZERO_SRC_LINUXMALLOCPROFILING_H | |
| 17 | |
| 18 #include "IceDefs.h" | |
| 19 #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.
| |
| 20 | |
| 21 namespace Ice { | |
| 22 | |
| 23 class LinuxMallocProfiling { | |
| 24 private: | |
| 25 LinuxMallocProfiling(const LinuxMallocProfiling &) = delete; | |
| 26 LinuxMallocProfiling &operator=(const LinuxMallocProfiling &) = delete; | |
| 27 | |
| 28 #ifdef ALLOW_LINUX_MALLOC_PROFILE | |
| 29 Ostream *Ls; | |
| 30 #endif // ALLOW_LINUX_MALLOC_PROFILE | |
| 31 | |
| 32 public: | |
| 33 LinuxMallocProfiling(size_t NumThreads, Ostream *Ls); | |
| 34 ~LinuxMallocProfiling(); | |
| 35 }; | |
| 36 | |
| 37 } // end of namespace Ice | |
| 38 #endif // SUBZERO_SRC_LINUXMALLOCPROFILING_H | |
| OLD | NEW |