зеркало из https://github.com/mozilla/gecko-dev.git
Bug 946560 - Dump about:memory upon receiving a signal on FreeBSD as well. r=njn
This commit is contained in:
Родитель
a4bc193dab
Коммит
1c770cae96
|
@ -6,7 +6,7 @@
|
|||
|
||||
#include "mozilla/nsMemoryInfoDumper.h"
|
||||
|
||||
#ifdef XP_LINUX
|
||||
#if defined(XP_LINUX) || defined(__FreeBSD__)
|
||||
#include "mozilla/Preferences.h"
|
||||
#endif
|
||||
#include "mozilla/unused.h"
|
||||
|
@ -31,7 +31,7 @@
|
|||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#ifdef XP_LINUX
|
||||
#if defined(XP_LINUX) || defined(__FreeBSD__)
|
||||
#include <fcntl.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
|
@ -110,7 +110,7 @@ private:
|
|||
|
||||
} // anonymous namespace
|
||||
|
||||
#ifdef XP_LINUX // {
|
||||
#if defined(XP_LINUX) || defined(__FreeBSD__) // {
|
||||
namespace {
|
||||
|
||||
/*
|
||||
|
@ -552,7 +552,7 @@ nsMemoryInfoDumper::~nsMemoryInfoDumper()
|
|||
/* static */ void
|
||||
nsMemoryInfoDumper::Initialize()
|
||||
{
|
||||
#ifdef XP_LINUX
|
||||
#if defined(XP_LINUX) || defined(__FreeBSD__)
|
||||
SignalPipeWatcher::Create();
|
||||
FifoWatcher::MaybeCreate();
|
||||
#endif
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
#include "nsPIDOMWindow.h"
|
||||
#include "nsIObserverService.h"
|
||||
#include "nsIGlobalObject.h"
|
||||
#if defined(XP_LINUX)
|
||||
#if defined(XP_LINUX) || defined(__FreeBSD__)
|
||||
#include "nsMemoryInfoDumper.h"
|
||||
#endif
|
||||
#include "mozilla/Attributes.h"
|
||||
|
@ -898,7 +898,7 @@ nsMemoryReporterManager::Init()
|
|||
RegisterStrongReporter(new mozilla::dmd::DMDReporter());
|
||||
#endif
|
||||
|
||||
#if defined(XP_LINUX)
|
||||
#if defined(XP_LINUX) || defined(__FreeBSD__)
|
||||
nsMemoryInfoDumper::Initialize();
|
||||
#endif
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче