Is it possible to detect that a Firefox browser is running the TraceMonkey JavaScript interpreter? If so, is it possible to do it with JavaScript? A solution which involves examining the browser binary or shared libraries is also OK for me. I'm running Linux with Firefox 3.0.14 right now.
you can check if it's enabled by looking at:
javascript.options.jit.chrome -> for browser UI and plugins
javascript.options.jit.content -> for web content
(you can also change the values)
btw. if your code is a little complex don't expect to get a speed comparable to V8. Tracemonkey fails with branchy code (it may be slower than spidermonkey).
More info: http://hacks.mozilla.org/2009/07/tracemonkey-overview/