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

Unified Diff: base/memory/memory_debug.h

Issue 7528010: Remove Purify and Quantify (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/base.gypi ('k') | base/memory/memory_debug.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/memory/memory_debug.h
===================================================================
--- base/memory/memory_debug.h (revision 96482)
+++ base/memory/memory_debug.h (working copy)
@@ -1,48 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// Functions used to debug memory usage, leaks, and other memory issues.
-// All methods are effectively no-ops unless this program is being run through
-// a supported memory tool (currently, only Purify)
-
-#ifndef BASE_MEMORY_MEMORY_DEBUG_H_
-#define BASE_MEMORY_MEMORY_DEBUG_H_
-#pragma once
-
-#include "base/base_export.h"
-#include "base/basictypes.h"
-
-namespace base {
-
-class BASE_EXPORT MemoryDebug {
- public:
- // Since MIU messages are a lot of data, and we don't always want this data,
- // we have a global switch. If disabled, *MemoryInUse are no-ops.
- static void SetMemoryInUseEnabled(bool enabled);
-
- // Dump information about all memory in use.
- static void DumpAllMemoryInUse();
- // Dump information about new memory in use since the last
- // call to DumpAllMemoryInUse() or DumpNewMemoryInUse().
- static void DumpNewMemoryInUse();
-
- // Dump information about all current memory leaks.
- static void DumpAllLeaks();
- // Dump information about new memory leaks since the last
- // call to DumpAllLeaks() or DumpNewLeaks()
- static void DumpNewLeaks();
-
- // Mark |size| bytes of memory as initialized, so it doesn't produce any UMRs
- // or UMCs.
- static void MarkAsInitialized(void* addr, size_t size);
-
- private:
- static bool memory_in_use_;
-
- DISALLOW_IMPLICIT_CONSTRUCTORS(MemoryDebug);
-};
-
-} // namespace base
-
-#endif // BASE_MEMORY_MEMORY_DEBUG_H_
« no previous file with comments | « base/base.gypi ('k') | base/memory/memory_debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698