[hazards] Improve the cut & paste command lines for running individual steps
Categories
(Core :: JavaScript: GC, enhancement, P2)
Tracking
()
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.)
Assignee | ||
Comment 1•2 years ago
|
||
Updated•2 years ago
|
Assignee | ||
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Comment 2•1 year ago
|
||
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.
Updated•1 year ago
|
Assignee | ||
Updated•1 year ago
|
Comment 4•1 year ago
|
||
bugherder |
Description
•