Closed
Bug 1184949
Opened 10 years ago
Closed 10 years ago
[profiler] profile.sh doesn't accept thread names with spaces in them
Categories
(Firefox OS Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: gsvelto, Assigned: jld)
Details
Attachments
(1 file)
I was trying to profile a DOM worker thread today and I've encountered this issue:
./profile.sh start -p b2g -i 1 -t "DOM Worker"
Process: b2g
Interval: 1
Threads: DOM <--- Here's the problem
Using default features js,leaf,threads
Starting profiling PID 3932
Profiler started
A quick inspection shows that OPTARG contains only the "DOM" part of the string, I'm not super-familiar with getopts so I'm not sure what's causing this.
Additionally the thread name is written into the profiler.options file without quotes which I suppose might cause issues too.
Description
•