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

Side by Side 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: More code reviews 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 unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698