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

Side by Side Diff: base/memory/memory_debug.h

Issue 6714032: Move some files in base to base/memory. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: only base Created 9 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 // Functions used to debug memory usage, leaks, and other memory issues. 5 // Functions used to debug memory usage, leaks, and other memory issues.
6 // All methods are effectively no-ops unless this program is being run through 6 // All methods are effectively no-ops unless this program is being run through
7 // a supported memory tool (currently, only Purify) 7 // a supported memory tool (currently, only Purify)
8 8
9 #ifndef BASE_MEMORY_DEBUG_H_ 9 #ifndef BASE_MEMORY_MEMORY_DEBUG_H_
10 #define BASE_MEMORY_DEBUG_H_ 10 #define BASE_MEMORY_MEMORY_DEBUG_H_
11 #pragma once 11 #pragma once
12 12
13 #include "base/basictypes.h" 13 #include "base/basictypes.h"
14 14
15 namespace base { 15 namespace base {
16 16
17 class MemoryDebug { 17 class MemoryDebug {
18 public: 18 public:
19 // Since MIU messages are a lot of data, and we don't always want this data, 19 // Since MIU messages are a lot of data, and we don't always want this data,
20 // we have a global switch. If disabled, *MemoryInUse are no-ops. 20 // we have a global switch. If disabled, *MemoryInUse are no-ops.
(...skipping 16 matching lines...) Expand all
37 static void MarkAsInitialized(void* addr, size_t size); 37 static void MarkAsInitialized(void* addr, size_t size);
38 38
39 private: 39 private:
40 static bool memory_in_use_; 40 static bool memory_in_use_;
41 41
42 DISALLOW_IMPLICIT_CONSTRUCTORS(MemoryDebug); 42 DISALLOW_IMPLICIT_CONSTRUCTORS(MemoryDebug);
43 }; 43 };
44 44
45 } // namespace base 45 } // namespace base
46 46
47 #endif // BASE_MEMORY_DEBUG_H_ 47 #endif // BASE_MEMORY_MEMORY_DEBUG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698