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

Side by Side Diff: tools/memory_watcher/memory_watcher.h

Issue 43148: Remove unneeded uses of logging.h in header files. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // MemoryWatcher. 5 // MemoryWatcher.
6 // The MemoryWatcher is a library that can be linked into any 6 // The MemoryWatcher is a library that can be linked into any
7 // win32 application. It will override the default memory allocators 7 // win32 application. It will override the default memory allocators
8 // and track call stacks for any allocations that are made. It can 8 // and track call stacks for any allocations that are made. It can
9 // then be used to see what memory is in use. 9 // then be used to see what memory is in use.
10 10
11 #ifndef MEMORY_WATCHER_MEMORY_WATCHER_ 11 #ifndef MEMORY_WATCHER_MEMORY_WATCHER_
12 #define MEMORY_WATCHER_MEMORY_WATCHER_ 12 #define MEMORY_WATCHER_MEMORY_WATCHER_
13 13
14 #include <map> 14 #include <map>
15 #include <functional> 15 #include <functional>
16 #include "base/lock.h" 16 #include "base/lock.h"
17 #include "base/logging.h"
18 #include "tools/memory_watcher/memory_hook.h" 17 #include "tools/memory_watcher/memory_hook.h"
19 18
20 class CallStack; 19 class CallStack;
21 class AllocationStack; 20 class AllocationStack;
22 21
23 // The MemoryWatcher installs allocation hooks and monitors 22 // The MemoryWatcher installs allocation hooks and monitors
24 // allocations and frees. 23 // allocations and frees.
25 class MemoryWatcher : MemoryObserver { 24 class MemoryWatcher : MemoryObserver {
26 public: 25 public:
27 MemoryWatcher(); 26 MemoryWatcher();
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 std::string file_name_; 80 std::string file_name_;
82 81
83 // An optional name that appears in the log file name (used to differentiate 82 // An optional name that appears in the log file name (used to differentiate
84 // logs). 83 // logs).
85 std::string log_name_; 84 std::string log_name_;
86 }; 85 };
87 86
88 87
89 88
90 #endif // MEMORY_WATCHER_ 89 #endif // MEMORY_WATCHER_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698