Closed Bug 633023 Opened 9 years ago Closed 9 years ago

xpcshell needs -p (enable profiling)

Categories

(Core :: XPConnect, defect)

defect
Not set

Tracking

()

RESOLVED FIXED

People

(Reporter: jruderman, Assigned: jruderman)

Details

(Whiteboard: fixed-in-tracemonkey)

Attachments

(1 file)

Attached patch patchSplinter Review
Based on the patch for bug 603558.

I don't know how to test that this actually works. Are there any known profiling bugs I could try to trigger in xpcshell with this patch?
To see if it works, set the environment variable TMFLAGS=profiler. The run a script like this:

for (var i=0; i<100; i++) print(i);

You should get some output from the profiler if you run with -m -j -p.
Yep, that worked :)  It prints some extra stuff around iteration 60 with -p, but not without -p.

TMFLAGS=profiler ~/tracemonkey/debug-obj/dist/bin/xpcshell -j -m -p -e "for (var i=0; i<100; i++) print(i);"
Attachment #511220 - Flags: review?(wmccloskey)
Attachment #511220 - Flags: review?(wmccloskey) → review+
Assignee: nobody → jruderman
http://hg.mozilla.org/tracemonkey/rev/51cecc00aa12
Whiteboard: fixed-in-tracemonkey
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.