/* 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/. */
/** *GetaJSONstringsummarizingPCCountdataforthegivenscript,byindex *withintheinternalarraycomputedwhenPCCountprofilingwasstopped,of *lengthindicatedby|JS::GetPCCountScriptCount|. * *TheJSONstringwillencodeanobjectofthisform: * *{ *"file":filenameforthescript, *"line":linenumberwithinthescript, * *// OPTIONAL: only if this script is a function *"name":functionname * *"totals": *{ *"interp":sumofexecutioncountsatallbytecodelocations, *"ion":sumofIonactivitycounts, *} *} * *Thereisnoinherentorderingtothe(script,scriptcountinfo)pairswithin *thearray.Callersgenerallyshouldexpecttocallthisfunctioninaloop *togetsummariesforallexecutedscripts.
*/ extern JS_PUBLIC_API JSString* GetPCCountScriptSummary(JSContext* cx,
size_t script);
/** *GetaJSONstringencodingdetailedPCCountdataforthegivenscript,by *indexwithintheinternalarraycomputedwhenPCCountprofilingwasstopped, *oflengthindicatedby|JS::GetPCCountScriptCount|. * *TheJSONstringwillencodeanobjectofthisform: * *{ *"text":astringcontaing(possiblydecompiled)sourceofthescript, *"line":linenumberwithinthescript, * *"opcodes": *[ *// array elements of this form, corresponding to the script's *// bytecodes *{ *"id":offsetofbytecodewithinscript *"line":linenumberforbytecode, *"name":thenameofthebytecodeinquestion, *"text":textoftheexpressionbeingevaluated, *"counts": *{ *// OPTIONAL: only if the count is nonzero *"interp":countoftimesexecuted, *}, *], * *// OPTIONAL: only if the script is executed under Ion *"ion": *[ *// array of elements of this form, corresponding to Ion basic blocks *{ *"id":Ionblockid, *"offset":Ionblockoffset, *"successors": *[ *// list of Ion block ids from which execution may proceed after *// this one *], *"hits":countoftimesthisblockwashitduringexecution, *"code":astringcontainingthecodeinthisIonbasicblock, *} *], *} * *Thereisnoinherentorderingtothe(script,scriptcountinfo)pairswithin *thearray.Callersgenerallyshouldexpecttocallthisfunctioninaloop *togetsummariesforallexecutedscripts.
*/ extern JS_PUBLIC_API JSString* GetPCCountScriptContents(JSContext* cx,
size_t script);
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.