2011-11-04 14:07:50 -07:00
|
|
|
/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-05-21 04:12:37 -07:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2011-11-04 14:07:50 -07:00
|
|
|
|
|
|
|
#include "mozilla/ModuleUtils.h"
|
|
|
|
#include "nsCOMPtr.h"
|
|
|
|
#include "nsProfiler.h"
|
|
|
|
#include "nsProfilerCIID.h"
|
|
|
|
|
2012-12-17 15:25:50 -08:00
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsProfiler, Init)
|
2011-11-04 14:07:50 -07:00
|
|
|
|
|
|
|
NS_DEFINE_NAMED_CID(NS_PROFILER_CID);
|
|
|
|
|
|
|
|
static const mozilla::Module::CIDEntry kProfilerCIDs[] = {
|
2013-11-11 11:16:31 -08:00
|
|
|
{ &kNS_PROFILER_CID, false, nullptr, nsProfilerConstructor },
|
|
|
|
{ nullptr }
|
2011-11-04 14:07:50 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
static const mozilla::Module::ContractIDEntry kProfilerContracts[] = {
|
|
|
|
{ "@mozilla.org/tools/profiler;1", &kNS_PROFILER_CID },
|
2013-11-11 11:16:31 -08:00
|
|
|
{ nullptr }
|
2011-11-04 14:07:50 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
static const mozilla::Module kProfilerModule = {
|
|
|
|
mozilla::Module::kVersion,
|
|
|
|
kProfilerCIDs,
|
|
|
|
kProfilerContracts
|
|
|
|
};
|
|
|
|
|
|
|
|
NSMODULE_DEFN(nsProfilerModule) = &kProfilerModule;
|