Using SlowCalls: Difference between revisions

(→‎Configure your profile: Unnecessary after JSOP_BEGIN removal)
Line 1: Line 1:
== Getting a tree with instrumentation ==
== Getting a tree with instrumentation ==


First, you need to get a tree containing Javascript instrumentation that is fully working. ({{bug|507012}} added the instrumentation, but it keeps getting perturbed by JS engine changes, so that it ends up getting mismatched JS function enters/exits.)
First, you need to get a tree containing Javascript instrumentation that is fully working. The easiest way to do this would be to clone http://people.mozilla.org/~sfink/src/slowcalls/


I've updated the patches in {{bug|605330}} to work on top of dvander's recent refactoring of the tracemonkey branch ({{bug|603044}}). So to get it working, you'll need to apply two sets of patches:
The only problem with this is that you won't have your own changes incorporated. If you need your changes, you could merge from the above tree (be sure your tree is based off of tracemonkey or it's guaranteed to be a total mess). Or you could apply everything in {{bug|605330}} and {{bug|580055}} and {{bug|558200}}.


* First, checkout the tracemonkey branch.
As of this writing, the above tree is based off of tracemonkey's 5a6eceb273ab revision.
* Apply everything in {{bug|605330}}
* Add in an instrumentation client that just logs everything to a file ({{bug|580055}}, which needs to be updated at the time of this writing)


== Building with instrumentation ==
== Building with instrumentation ==
Confirmed users
328

edits