Line data Source code
1 : /* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 : /* This Source Code Form is subject to the terms of the Mozilla Public
3 : * License, v. 2.0. If a copy of the MPL was not distributed with this
4 : * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 :
6 : #include "mozilla/ModuleUtils.h"
7 : #include "nsCOMPtr.h"
8 : #include "MemoryProfiler.h"
9 :
10 : using mozilla::MemoryProfiler;
11 :
12 0 : NS_GENERIC_FACTORY_CONSTRUCTOR(MemoryProfiler)
13 :
14 : NS_DEFINE_NAMED_CID(MEMORY_PROFILER_CID);
15 :
16 : static const mozilla::Module::CIDEntry kMemoryProfilerCIDs[] = {
17 : { &kMEMORY_PROFILER_CID, false, nullptr, MemoryProfilerConstructor },
18 : { nullptr }
19 : };
20 :
21 : static const mozilla::Module::ContractIDEntry kMemoryProfilerContracts[] = {
22 : { MEMORY_PROFILER_CONTRACT_ID, &kMEMORY_PROFILER_CID },
23 : { nullptr }
24 : };
25 :
26 : static const mozilla::Module kMemoryProfilerModule = {
27 : mozilla::Module::kVersion,
28 : kMemoryProfilerCIDs,
29 : kMemoryProfilerContracts
30 : };
31 :
32 9 : NSMODULE_DEFN(nsMemoryProfilerModule) = &kMemoryProfilerModule;
|