From: Zach B. <xa...@xa...> - 2005-06-16 15:46:19
|
Attached is a patch that makes sb-sprof profile all threads that are alive when SB-SPROF:START-PROFILING is called. Some of the thread enumeration code is taken from slime's swank-sbcl.lisp. It would be nice if sb-sprof could profile threads that are created during a profile run. This patch doesn't do it, because I'm not sure how to discover when a new thread is created so the signals can be set up. The patch also has an unrelated change to avoid a divide-by-zero error if no samples were taken during profiling. Zach |