Closed
Bug 1013324
Opened 11 years ago
Closed 8 years ago
Profiling a nonexistent thread fails with 'Error in worker: Exception: TypeError: threads[0] is undefined'
Categories
(Core :: Gecko Profiler, defect)
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: jujjyl, Unassigned)
Details
Running a profile with
Jukkas-MacBook-Pro:B2G jjylanki$ ./profile.sh start -p myAppName -t asdfasdfasdf -f stackwalk,js,leaf,threads
Process: myAppName
Threads: asdfasdfasdf
Features: stackwalk,js,leaf,threads
Starting profiling PID 2144..
Profiler started
Jukkas-MacBook-Pro:B2G jjylanki$ ./profile.sh capture
Signaling Profiled Processes: 2144
Stabilizing 2144 myAppName ...
Pulling /data/local/tmp/profile_2_2144.txt into profile_2144_myAppName.txt
Adding symbols to profile_2144_myAppName.txt and creating profile_2144_myAppName.sym ...
Removing old profile files (from device) ... done
does not show any errors, but when loading the profile to http://people.mozilla.org/~bgirard/cleopatra/# , it gives the error
Error in worker: Exception: TypeError: threads[0] is undefined (http://people.mozilla.org/~bgirard/cleopatra/js/parserWorker.js:933)
Expected:
Perhaps it is not possible to error/warn when "./profile.sh start" is executed that the given thread does not exist (since it might start up later?), so when ./profile.sh capture'ing, getting an error message
Error/Warning: None of the threads "asdfasdfasdf,thread2,thread3" were executed during the time of the profile!
would be possible?
Comment 1•11 years ago
|
||
Right now starting the profiler on b2g is done via unix signal so it's only a single direction of communications. The best way to do this would be to use RDP like all the other platforms.
Comment 2•8 years ago
|
||
This was about the B2G profile.sh script.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•