/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
[scriptable, builtinclass, uuid(48541b74-47ee-4a62-9557-7f4b809bda5c)]
interface nsIMemoryInfoDumper : nsISupports
{ /** *Thisdumpsgzippedmemoryreportsforthisprocessanditschild *processes.Ifafileofthegivennameexists,itwillbeoverwritten. * *@paramaFilenameTheoutputfile. * *@paramaFinishDumpingThecallbackcalledoncompletion. * *@paramaFinishDumpingDataTheenvironmentforthecallback. * *@paramaAnonymizeShouldthereportsbeanonymized? * *@paramaMinimizeMemoryUsageindicateswhetherweshouldrunaseriesof *GC/CC'sinanattempttoreduceourmemoryusagebeforecollectingour *memoryreport. * *Sampleoutput,annotatedwithcommentsforexplanatorypurposes. * *{ *// The version number of the format, which will be incremented each time *// backwards-incompatible changes are made. A mandatory integer. *"version":1 * *// Equal to nsIMemoryReporterManager::hasMozMallocUsableSize. A *// mandatory boolean. *"hasMozMallocUsableSize":true, * *// The memory reports. A mandatory array. *"reports":[ *// The properties correspond to the arguments of *// nsIHandleReportCallback::callback. Every one is mandatory. *{"process":"MainProcess(pid12345)","path":"explicit/foo/bar", *"kind":1,"units":0,"amount":2000000,"description":"Foobar."}, *{"process":"MainProcess(pid12345)","path":"heap-allocated", *"kind":1,"units":0,"amount":3000000,"description":"Heapallocated."}, *{"process":"MainProcess(pid12345)","path":"vsize", *"kind":1,"units":0,"amount":10000000,"description":"Vsize."} *] *}
*/ void dumpMemoryReportsToNamedFile(in AString aFilename,
in nsIFinishDumpingCallback aFinishDumping,
in nsISupports aFinishDumpingData,
in boolean aAnonymize,
in boolean aMinimizeMemoryUsage);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.