• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
20 namespace Ice {
21 
22 class LinuxMallocProfiling {
23 private:
24   LinuxMallocProfiling(const LinuxMallocProfiling &) = delete;
25   LinuxMallocProfiling &operator=(const LinuxMallocProfiling &) = delete;
26 
27 #ifdef ALLOW_LINUX_MALLOC_PROFILE
28   Ostream *Ls;
29 #endif // ALLOW_LINUX_MALLOC_PROFILE
30 
31 public:
32   LinuxMallocProfiling(size_t NumThreads, Ostream *Ls);
33   ~LinuxMallocProfiling();
34 };
35 
36 } // end of namespace Ice
37 
38 #endif // SUBZERO_SRC_LINUXMALLOCPROFILING_H
39