Bug 858929 Allow external components to register memory reporters r=njn
authorNeil Rashbrook <neil@parkwaycc.co.uk>
Sun, 07 Apr 2013 00:05:47 +0100
changeset 127913 fcd43a7b4b982f568d25c36a5143a37fa0e099f5
parent 127912 970a211a1d762109d464fc743a62babf22daf282
child 127914 63bfbc612e21b5cf29c08a7481ce08ba5b651284
push id26031
push userneil@parkwaycc.co.uk
push dateSat, 06 Apr 2013 23:05:53 +0000
treeherdermozilla-inbound@fcd43a7b4b98 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnjn
bugs858929
milestone23.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 858929 Allow external components to register memory reporters r=njn
xpcom/base/nsIMemoryReporter.idl
--- a/xpcom/base/nsIMemoryReporter.idl
+++ b/xpcom/base/nsIMemoryReporter.idl
@@ -350,21 +350,21 @@ interface nsIMemoryReporterManager : nsI
         NS_FALLIBLE_MEMORY_REPORTER_IMPLEMENT_HELPER(_c, _p, _k, _u, _a, _d, _THREADSAFE_)
 
 #define NS_MEMORY_REPORTER_NAME(_classname)  MemoryReporter_##_classname
 
 // Note that the memory reporters are held in an nsCOMArray, which means
 // that individual reporters should be referenced with |nsIMemoryReporter *|
 // instead of nsCOMPtr<nsIMemoryReporter>.
 
-nsresult NS_RegisterMemoryReporter(nsIMemoryReporter *reporter);
-nsresult NS_RegisterMemoryMultiReporter(nsIMemoryMultiReporter *reporter);
+XPCOM_API(nsresult) NS_RegisterMemoryReporter(nsIMemoryReporter *reporter);
+XPCOM_API(nsresult) NS_RegisterMemoryMultiReporter(nsIMemoryMultiReporter *reporter);
 
-nsresult NS_UnregisterMemoryReporter(nsIMemoryReporter *reporter);
-nsresult NS_UnregisterMemoryMultiReporter(nsIMemoryMultiReporter *reporter);
+XPCOM_API(nsresult) NS_UnregisterMemoryReporter(nsIMemoryReporter *reporter);
+XPCOM_API(nsresult) NS_UnregisterMemoryMultiReporter(nsIMemoryMultiReporter *reporter);
 
 #if defined(MOZ_DMD)
 namespace mozilla {
 namespace dmd {
 // This runs all the memory reporters but does nothing with the results;  i.e.
 // it does the minimal amount of work possible for DMD to do its thing.
 void RunReporters();
 }