Hi,
On 10/28/2012 03:45 PM,
sandeepr...@gmail.com wrote:
> I wanted to generate entire log of opcodes generated as a particular website is loaded in the browser.I know that js shell provides 'dis' and 'dissrc' but I greatly help me to generate traces dynamically(traces not in sense of tracemonkeyJIT traces but entire opcodes created). Any help is appreciated.
You can have a look at all opcodes used by enabling the PCCount stats and
looking at the results after. PCCount gives a per pc output and annotate
bytecode.
The CodeInspector addon might give you such information, otherwise you can
just look at the sources and reverse engineer it. If it doesn't do what you
want, you might want to look at [1], which is a small demo inspired from the
CodeInspector code but it should no longer work with recent versions.
[1]
http://people.mozilla.com/~npierron/js-profile/
--
Nicolas B. Pierron