From fcd7ee3c886c435f178230b13d0b0cb0c9c40c53 Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Wed, 23 May 2018 16:31:42 +0200 Subject: Remove the Dark Matter Detector (DMD) Memeory debugger component. This resolves #376. --- xpcom/base/nsIMemoryReporter.idl | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'xpcom/base/nsIMemoryReporter.idl') diff --git a/xpcom/base/nsIMemoryReporter.idl b/xpcom/base/nsIMemoryReporter.idl index 9617877df..babfa646f 100644 --- a/xpcom/base/nsIMemoryReporter.idl +++ b/xpcom/base/nsIMemoryReporter.idl @@ -404,13 +404,6 @@ interface nsIMemoryReporterManager : nsISupports */ [infallible] readonly attribute boolean hasMozMallocUsableSize; - /* - * These attributes indicate DMD's status. "Enabled" means enabled at - * build-time. - */ - [infallible] readonly attribute boolean isDMDEnabled; - [infallible] readonly attribute boolean isDMDRunning; - /* * Run a series of GC/CC's in an attempt to minimize the application's memory * usage. When we're finished, we invoke the given runnable if it's not @@ -519,23 +512,9 @@ nsresult RegisterNonJSSizeOfTab(NonJSSizeOfTabFn aSizeOfTabFn); } -#if defined(MOZ_DMD) -#if !defined(MOZ_MEMORY) -#error "MOZ_DMD requires MOZ_MEMORY" -#endif - -#include "DMD.h" - -#define MOZ_REPORT(ptr) mozilla::dmd::Report(ptr) -#define MOZ_REPORT_ON_ALLOC(ptr) mozilla::dmd::ReportOnAlloc(ptr) - -#else - #define MOZ_REPORT(ptr) #define MOZ_REPORT_ON_ALLOC(ptr) -#endif // defined(MOZ_DMD) - // Functions generated via this macro should be used by all traversal-based // memory reporters. Such functions return |moz_malloc_size_of(ptr)|; this // will always be zero on some obscure platforms. -- cgit v1.2.3