Closed Bug 1821185 Opened 2 years ago Closed 1 year ago

[hazards] Improve the cut & paste command lines for running individual steps

Categories

(Core :: JavaScript: GC, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
115 Branch
Tracking Status
firefox115 --- fixed

People

(Reporter: sfink, Assigned: sfink)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

This has no effect on the actual analysis, but my debugging routine for problems is to run mach hazards analyze, then scroll back up through the output and cut & paste in a command line, eg:

XDB="$HOME/.mozbuild/hazard-tools/sixgill/usr/bin/xdb.so" SOURCE="$HOME/src/mozilla3/js/src/devtools/rootAnalysis/t/types" ~/src/mozilla3/obj-haz-shell/dist/bin/js ~/src/mozilla3/js/src/devtools/rootAnalysis/analyzeRoots.js gcFunctions.lst limitedFunctions.lst gcTypes.txt typeInfo.txt 1 16 tmp.1.of.16 > rootingHazards.1.of.1

I have a script debug that if I prefix the above with debug --js, it will run the script under the JS debugger. Additionally, most commands accept a --function "$SOMEFUNC" argument to only process a single function. Both are invaluable for getting into the debugger close to the stuff I need to look at.

There are two problems. First, the commands often have extra parameters that are only there to speed up the execution by parallelizing some steps. The above command will only process 1/16 of the total functions, and if the function I am interested in is not in that slice, I'm out of luck. Right now, I manually remove those parameters (since the default is to run on the whole set.)

Second, the output is way too verbose, so it is very hard to find the right output line. Most of the output is useless most of the time. It would be better to have more verbosity levels and default to something less verbose, and to trim down the output that I do care about so I don't have to cut & paste across 20 lines. (The above example is shorter than the reality.)

Blocks: hazard
Assignee: nobody → sphink
Status: NEW → ASSIGNED
Assignee: nobody → sphink
Status: NEW → ASSIGNED
Attachment #9321984 - Attachment description: Bug 1821185 - Cut down the default output dramatically, to make it easier to find what to debug. → Bug 1821185 - [hazards] Cut down the default output dramatically, to make it easier to find what to debug.
Severity: -- → N/A
Priority: -- → P2

There is an r+ patch which didn't land and no activity in this bug for 2 weeks.
:sfink, could you have a look please?
If you still have some work to do, you can add an action "Plan Changes" in Phabricator.
For more information, please visit BugBot documentation.

Flags: needinfo?(sphink)
Flags: needinfo?(bthrall)
Flags: needinfo?(bthrall)
Pushed by sfink@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ae73000f2b8a [hazards] Cut down the default output dramatically, to make it easier to find what to debug. r=bthrall
Flags: needinfo?(sphink)
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 115 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: